summaryrefslogtreecommitdiffstats
path: root/library/entry.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/entry.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/entry.tcl')
-rw-r--r--library/entry.tcl5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/entry.tcl b/library/entry.tcl
index 36c331d..2c72fee 100644
--- a/library/entry.tcl
+++ b/library/entry.tcl
@@ -272,7 +272,7 @@ bind Entry <Meta-Delete> {
}
}
-# Bindings for IME text input.
+# Bindings for IME text input and accents.
bind Entry <<TkStartIMEMarkedText>> {
dict set ::tk::Priv(IMETextMark) "%W" [%W index insert]
@@ -283,6 +283,9 @@ bind Entry <<TkEndIMEMarkedText>> {
bind Entry <<TkClearIMEMarkedText>> {
%W delete [dict get $::tk::Priv(IMETextMark) "%W"] [%W index insert]
}
+bind Entry <<TkAccentBackspace>> {
+ tk::EntryBackspace %W
+}
# A few additional bindings of my own.