mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
10 lines
380 B
JavaScript
10 lines
380 B
JavaScript
// clear selection range of current selected term view
|
|
// Fix event when terminal text is selected and keyboard action is invoked
|
|
exports.clear = function (terminal) {
|
|
terminal.document_.getSelection().removeAllRanges();
|
|
};
|
|
|
|
// Use selection expand upon dblclick
|
|
exports.expand = function (terminal) {
|
|
terminal.screen_.expandSelection(terminal.document_.getSelection());
|
|
};
|