fix #1843 Double click to select word does not work for Qt QWebView

This commit is contained in:
nightwing 2014-03-13 19:42:05 +04:00
commit 8cdb16659d
2 changed files with 2 additions and 1 deletions

View file

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

View file

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