Capture mouse on quadclick
This commit is contained in:
parent
8ebf34a385
commit
8a841df6e2
1 changed files with 3 additions and 3 deletions
|
|
@ -47,7 +47,7 @@ function DefaultHandlers(mouseHandler) {
|
||||||
editor.setDefaultHandler("quadclick", this.onQuadClick.bind(mouseHandler));
|
editor.setDefaultHandler("quadclick", this.onQuadClick.bind(mouseHandler));
|
||||||
editor.setDefaultHandler("mousewheel", this.onMouseWheel.bind(mouseHandler));
|
editor.setDefaultHandler("mousewheel", this.onMouseWheel.bind(mouseHandler));
|
||||||
|
|
||||||
var exports = ["select", "startSelect", "selectEnd", "selectByWordsEnd",
|
var exports = ["select", "startSelect", "selectEnd", "selectAllEnd", "selectByWordsEnd",
|
||||||
"selectByLinesEnd", "dragWait", "dragWaitEnd", "focusWait"];
|
"selectByLinesEnd", "dragWait", "dragWaitEnd", "focusWait"];
|
||||||
|
|
||||||
exports.forEach(function(x) {
|
exports.forEach(function(x) {
|
||||||
|
|
@ -181,6 +181,7 @@ function DefaultHandlers(mouseHandler) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.selectEnd =
|
this.selectEnd =
|
||||||
|
this.selectAllEnd =
|
||||||
this.selectByWordsEnd =
|
this.selectByWordsEnd =
|
||||||
this.selectByLinesEnd = function() {
|
this.selectByLinesEnd = function() {
|
||||||
this.editor.unsetStyle("ace_selecting");
|
this.editor.unsetStyle("ace_selecting");
|
||||||
|
|
@ -230,8 +231,7 @@ function DefaultHandlers(mouseHandler) {
|
||||||
|
|
||||||
editor.selectAll();
|
editor.selectAll();
|
||||||
this.$clickSelection = editor.getSelectionRange();
|
this.$clickSelection = editor.getSelectionRange();
|
||||||
this.setState("null");
|
this.setState("selectAll");
|
||||||
this.selectEnd();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.onMouseWheel = function(ev) {
|
this.onMouseWheel = function(ev) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue