summaryrefslogtreecommitdiffstats
path: root/library/text.tcl
diff options
context:
space:
mode:
authorculler <culler>2019-10-24 23:56:43 (GMT)
committerculler <culler>2019-10-24 23:56:43 (GMT)
commitc9c3c73d09cd696f710a5c6bfd731d9cdb243276 (patch)
tree97fe5c8f77496aea79aedaaf8585bfc7946269e6 /library/text.tcl
parent2b66c3ae4d05b4f4c64b795fb6e276c24c44f37e (diff)
downloadtk-c9c3c73d09cd696f710a5c6bfd731d9cdb243276.zip
tk-c9c3c73d09cd696f710a5c6bfd731d9cdb243276.tar.gz
tk-c9c3c73d09cd696f710a5c6bfd731d9cdb243276.tar.bz2
Make Apple's press-and-hold accent menu work with Tk entry and text widgets.
Diffstat (limited to 'library/text.tcl')
-rw-r--r--library/text.tcl3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/text.tcl b/library/text.tcl
index 24f8428..e1130a4 100644
--- a/library/text.tcl
+++ b/library/text.tcl
@@ -403,6 +403,9 @@ bind Text <<TkEndIMEMarkedText>> {
bind Text <<TkClearIMEMarkedText>> {
%W delete IMEmarkedtext.first IMEmarkedtext.last
}
+bind Text <<TkAccentBackspace>> {
+ %W delete insert-1c
+}
# Macintosh only bindings: