summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorfvogel <fvogel@noemail.net>2015-10-04 14:07:49 (GMT)
committerfvogel <fvogel@noemail.net>2015-10-04 14:07:49 (GMT)
commit4c1807d843141d40bd64c2bb11d5cd3a7d1e4840 (patch)
treeef380cfaee6cd737f9140e0f49ed610ce5b75c1c /library
parentd1d5700fa5b0adf3ab22054dd020210ec7fad531 (diff)
downloadtk-4c1807d843141d40bd64c2bb11d5cd3a7d1e4840.zip
tk-4c1807d843141d40bd64c2bb11d5cd3a7d1e4840.tar.gz
tk-4c1807d843141d40bd64c2bb11d5cd3a7d1e4840.tar.bz2
Fixed bug [1669632fff] cases (ii) and (iii) - Tolerate a shaky hand using the mouse
FossilOrigin-Name: 55133bde505fae9197c66f1ac05dc68c310e7baa
Diffstat (limited to 'library')
-rw-r--r--library/text.tcl4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/text.tcl b/library/text.tcl
index 792ee3b..68ca0f5 100644
--- a/library/text.tcl
+++ b/library/text.tcl
@@ -91,6 +91,10 @@ bind Text <Control-1> {
%W edit separator
}
}
+# stop an accidental double click triggering <Double-Button-1>
+bind Text <Double-Control-1> { # nothing }
+# stop an accidental movement triggering <B1-Motion>
+bind Text <Control-B1-Motion> { # nothing }
bind Text <Left> {
tk::TextSetCursor %W insert-1displayindices
}