summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2015-10-04 14:07:49 (GMT)
committerfvogelnew1@free.fr <fvogel>2015-10-04 14:07:49 (GMT)
commit5c1f4abb3760bb85cdfc9d56e3f977feb739e9a7 (patch)
treeef380cfaee6cd737f9140e0f49ed610ce5b75c1c
parente2670193ce114ffbe15a0f270e371a7252990b77 (diff)
downloadtk-5c1f4abb3760bb85cdfc9d56e3f977feb739e9a7.zip
tk-5c1f4abb3760bb85cdfc9d56e3f977feb739e9a7.tar.gz
tk-5c1f4abb3760bb85cdfc9d56e3f977feb739e9a7.tar.bz2
Fixed bug [1669632fff] cases (ii) and (iii) - Tolerate a shaky hand using the mouse
-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
}