diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-08-11 08:36:58 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-08-11 08:36:58 (GMT) |
commit | 37bbae810972820ec44d0ff5dab6bdf66117ef44 (patch) | |
tree | 7050d329d65766f1d5dff4afea7217752c1dcb40 /library/listbox.tcl | |
parent | b1389978ea8fdb2388386559c06247cb00ce48b1 (diff) | |
parent | 2b0aa341dd7556d42bd7ac7ebc11e6d767455775 (diff) | |
download | tk-37bbae810972820ec44d0ff5dab6bdf66117ef44.zip tk-37bbae810972820ec44d0ff5dab6bdf66117ef44.tar.gz tk-37bbae810972820ec44d0ff5dab6bdf66117ef44.tar.bz2 |
[Bug 3555644]: Better use of virtual events.
Pre-define 10 new Virtual events, and correct various bindings according to the Mac OSX documentation.
Diffstat (limited to 'library/listbox.tcl')
-rw-r--r-- | library/listbox.tcl | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/library/listbox.tcl b/library/listbox.tcl index c7dd32e..01fb03d 100644 --- a/library/listbox.tcl +++ b/library/listbox.tcl @@ -69,28 +69,28 @@ bind Listbox <B1-Enter> { tk::CancelRepeat } -bind Listbox <Up> { +bind Listbox <<PrevLine>> { tk::ListboxUpDown %W -1 } -bind Listbox <Shift-Up> { +bind Listbox <<SelectPrevLine>> { tk::ListboxExtendUpDown %W -1 } -bind Listbox <Down> { +bind Listbox <<NextLine>> { tk::ListboxUpDown %W 1 } -bind Listbox <Shift-Down> { +bind Listbox <<SelectNextLine>> { tk::ListboxExtendUpDown %W 1 } -bind Listbox <Left> { +bind Listbox <<PrevChar>> { %W xview scroll -1 units } -bind Listbox <Control-Left> { +bind Listbox <<PrevWord>> { %W xview scroll -1 pages } -bind Listbox <Right> { +bind Listbox <<NextChar>> { %W xview scroll 1 units } -bind Listbox <Control-Right> { +bind Listbox <<NextWord>> { %W xview scroll 1 pages } bind Listbox <Prior> { @@ -107,10 +107,10 @@ bind Listbox <Control-Prior> { bind Listbox <Control-Next> { %W xview scroll 1 pages } -bind Listbox <Home> { +bind Listbox <<LineStart>> { %W xview moveto 0 } -bind Listbox <End> { +bind Listbox <<LineEnd>> { %W xview moveto 1 } bind Listbox <Control-Home> { @@ -154,10 +154,10 @@ bind Listbox <Shift-Select> { bind Listbox <Escape> { tk::ListboxCancel %W } -bind Listbox <Control-slash> { +bind Listbox <<SelectAll>> { tk::ListboxSelectAll %W } -bind Listbox <Control-backslash> { +bind Listbox <<SelectNone>> { if {[%W cget -selectmode] ne "browse"} { %W selection clear 0 end event generate %W <<ListboxSelect>> |