diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-04-19 19:50:10 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-04-19 19:50:10 (GMT) |
commit | 9519ffb35649873f9567b3631d2680a2f90850ee (patch) | |
tree | 1fea5c5e76f6c4c284ca03133bda36141a09665e /library/spinbox.tcl | |
parent | 632db03ddf197db7bc4d6c4677cdf964a6b0223b (diff) | |
download | tk-9519ffb35649873f9567b3631d2680a2f90850ee.zip tk-9519ffb35649873f9567b3631d2680a2f90850ee.tar.gz tk-9519ffb35649873f9567b3631d2680a2f90850ee.tar.bz2 |
Fix [8dd3d58c62]: macOS Aqua: Fn + e to access Emoji
Diffstat (limited to 'library/spinbox.tcl')
-rw-r--r-- | library/spinbox.tcl | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/library/spinbox.tcl b/library/spinbox.tcl index 2b387d2..0e26644 100644 --- a/library/spinbox.tcl +++ b/library/spinbox.tcl @@ -200,18 +200,18 @@ bind Spinbox <<SelectAll>> { bind Spinbox <<SelectNone>> { %W selection clear } -bind Spinbox <KeyPress> { +bind Spinbox <Key> { ::tk::EntryInsert %W %A } -# Ignore all Alt, Meta, and Control keypresses unless explicitly bound. +# Ignore all Alt, Meta, Control, and Mod4 keypresses unless explicitly bound. # Otherwise, if a widget binding for one of these is defined, the -# <KeyPress> class binding will also fire and insert the character, +# <Key> class binding will also fire and insert the character, # which is wrong. Ditto for Escape, Return, and Tab. -bind Spinbox <Alt-KeyPress> {# nothing} -bind Spinbox <Meta-KeyPress> {# nothing} -bind Spinbox <Control-KeyPress> {# nothing} +bind Spinbox <Alt-Key> {# nothing} +bind Spinbox <Meta-Key> {# nothing} +bind Spinbox <Control-Key> {# nothing} bind Spinbox <Escape> {# nothing} bind Spinbox <Return> {# nothing} bind Spinbox <KP_Enter> {# nothing} @@ -219,7 +219,8 @@ bind Spinbox <Tab> {# nothing} bind Spinbox <Prior> {# nothing} bind Spinbox <Next> {# nothing} if {[tk windowingsystem] eq "aqua"} { - bind Spinbox <Command-KeyPress> {# nothing} + bind Spinbox <Command-Key> {# nothing} + bind Spinbox <Mod4-Key> {# nothing} } # On Windows, paste is done using Shift-Insert. Shift-Insert already |