hyper/lib/utils/selection.js
2016-08-20 17:25:04 -04:00

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());
};