fix #1843 Double click to select word does not work for Qt QWebView
This commit is contained in:
parent
498af4aab8
commit
8cdb16659d
2 changed files with 2 additions and 1 deletions
|
|
@ -181,6 +181,7 @@ function DefaultHandlers(mouseHandler) {
|
|||
this.selectAllEnd =
|
||||
this.selectByWordsEnd =
|
||||
this.selectByLinesEnd = function() {
|
||||
this.$clickSelection = null;
|
||||
this.editor.unsetStyle("ace_selecting");
|
||||
if (this.editor.renderer.scroller.releaseCapture) {
|
||||
this.editor.renderer.scroller.releaseCapture();
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ var MouseHandler = function(editor) {
|
|||
clearInterval(timerId);
|
||||
onCaptureInterval();
|
||||
self[self.state + "End"] && self[self.state + "End"](e);
|
||||
self.$clickSelection = null;
|
||||
self.state = "";
|
||||
if (renderer.$keepTextAreaAtCursor == null) {
|
||||
renderer.$keepTextAreaAtCursor = true;
|
||||
renderer.$moveTextAreaToCursor();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue