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("mousewheel", this.onMouseWheel.bind(mouseHandler));
|
||||
|
||||
var exports = ["select", "startSelect", "selectEnd", "selectByWordsEnd",
|
||||
var exports = ["select", "startSelect", "selectEnd", "selectAllEnd", "selectByWordsEnd",
|
||||
"selectByLinesEnd", "dragWait", "dragWaitEnd", "focusWait"];
|
||||
|
||||
exports.forEach(function(x) {
|
||||
|
|
@ -181,6 +181,7 @@ function DefaultHandlers(mouseHandler) {
|
|||
};
|
||||
|
||||
this.selectEnd =
|
||||
this.selectAllEnd =
|
||||
this.selectByWordsEnd =
|
||||
this.selectByLinesEnd = function() {
|
||||
this.editor.unsetStyle("ace_selecting");
|
||||
|
|
@ -230,8 +231,7 @@ function DefaultHandlers(mouseHandler) {
|
|||
|
||||
editor.selectAll();
|
||||
this.$clickSelection = editor.getSelectionRange();
|
||||
this.setState("null");
|
||||
this.selectEnd();
|
||||
this.setState("selectAll");
|
||||
};
|
||||
|
||||
this.onMouseWheel = function(ev) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue