diff options
author | Norbert Preining <norbert@preining.info> | 2024-03-15 03:06:35 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-03-15 03:06:35 +0000 |
commit | 12679ab7d3c2a210f4123163671b532b8b55d5f9 (patch) | |
tree | 0060d13467186ad977f4e73488ee20dd6c0017ab /systems/texlive/tlnet/tlpkg/tltcl/lib/tk8.6/spinbox.tcl | |
parent | 62170822e034fdd3f81de7274835d0d3b0467100 (diff) |
CTAN sync 202403150306
Diffstat (limited to 'systems/texlive/tlnet/tlpkg/tltcl/lib/tk8.6/spinbox.tcl')
-rw-r--r-- | systems/texlive/tlnet/tlpkg/tltcl/lib/tk8.6/spinbox.tcl | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/systems/texlive/tlnet/tlpkg/tltcl/lib/tk8.6/spinbox.tcl b/systems/texlive/tlnet/tlpkg/tltcl/lib/tk8.6/spinbox.tcl index 2b387d2afa..0e26644a7e 100644 --- a/systems/texlive/tlnet/tlpkg/tltcl/lib/tk8.6/spinbox.tcl +++ b/systems/texlive/tlnet/tlpkg/tltcl/lib/tk8.6/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 |