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/entry.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/entry.tcl')
-rw-r--r-- | library/entry.tcl | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/library/entry.tcl b/library/entry.tcl index de6c463..f28547e 100644 --- a/library/entry.tcl +++ b/library/entry.tcl @@ -185,10 +185,10 @@ bind Entry <Control-Shift-space> { bind Entry <Shift-Select> { %W selection adjust insert } -bind Entry <Control-slash> { +bind Entry <<SelectAll>> { %W selection range 0 end } -bind Entry <Control-backslash> { +bind Entry <<SelectNone>> { %W selection clear } bind Entry <KeyPress> { @@ -214,8 +214,8 @@ if {[tk windowingsystem] eq "aqua"} { bind Entry <Command-KeyPress> {# nothing} } # Tk-on-Cocoa generates characters for these two keys. [Bug 2971663] -bind Entry <Down> {# nothing} -bind Entry <Up> {# nothing} +bind Entry <<NextLine>> {# nothing} +bind Entry <<PrevLine>> {# nothing} # On Windows, paste is done using Shift-Insert. Shift-Insert already # generates the <<Paste>> event, so we don't need to do anything here. @@ -227,31 +227,11 @@ if {[tk windowingsystem] ne "win32"} { # Additional emacs-like bindings: -bind Entry <Control-a> { - if {!$tk_strictMotif} { - tk::EntrySetCursor %W 0 - } -} -bind Entry <Control-b> { - if {!$tk_strictMotif} { - tk::EntrySetCursor %W [expr {[%W index insert] - 1}] - } -} bind Entry <Control-d> { if {!$tk_strictMotif} { %W delete insert } } -bind Entry <Control-e> { - if {!$tk_strictMotif} { - tk::EntrySetCursor %W end - } -} -bind Entry <Control-f> { - if {!$tk_strictMotif} { - tk::EntrySetCursor %W [expr {[%W index insert] + 1}] - } -} bind Entry <Control-h> { if {!$tk_strictMotif} { tk::EntryBackspace %W |