summaryrefslogtreecommitdiffstats
path: root/library/ttk
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2012-08-09 11:03:00 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2012-08-09 11:03:00 (GMT)
commitba3dec19ee0a8486d2afb3dbe3000ea619aa5ef9 (patch)
treeb8267b8025bccdba2a79df3790081030fc9e28ec /library/ttk
parent9eb1d2f75ef87f16de354dc944c7e02b844514d2 (diff)
downloadtk-ba3dec19ee0a8486d2afb3dbe3000ea619aa5ef9.zip
tk-ba3dec19ee0a8486d2afb3dbe3000ea619aa5ef9.tar.gz
tk-ba3dec19ee0a8486d2afb3dbe3000ea619aa5ef9.tar.bz2
[Bug 3555644]: Better use of virtual events.
FossilOrigin-Name: b16dcbf9fa8317a52d724d7d00316eede60742a5
Diffstat (limited to 'library/ttk')
-rw-r--r--library/ttk/entry.tcl2
-rw-r--r--library/ttk/scale.tcl15
2 files changed, 9 insertions, 8 deletions
diff --git a/library/ttk/entry.tcl b/library/ttk/entry.tcl
index a27921a..9e0d6e1 100644
--- a/library/ttk/entry.tcl
+++ b/library/ttk/entry.tcl
@@ -141,10 +141,8 @@ bind TEntry <Up> {# nothing}
## Additional emacs-like bindings:
#
-bind TEntry <Control-Key-a> { ttk::entry::Move %W home }
bind TEntry <Control-Key-b> { ttk::entry::Move %W prevchar }
bind TEntry <Control-Key-d> { ttk::entry::Delete %W }
-bind TEntry <Control-Key-e> { ttk::entry::Move %W end }
bind TEntry <Control-Key-f> { ttk::entry::Move %W nextchar }
bind TEntry <Control-Key-h> { ttk::entry::Backspace %W }
bind TEntry <Control-Key-k> { %W delete insert end }
diff --git a/library/ttk/scale.tcl b/library/ttk/scale.tcl
index 23d08ed..f270697 100644
--- a/library/ttk/scale.tcl
+++ b/library/ttk/scale.tcl
@@ -21,16 +21,19 @@ bind TScale <ButtonPress-3> { ttk::scale::Jump %W %x %y }
bind TScale <B3-Motion> { ttk::scale::Drag %W %x %y }
bind TScale <ButtonRelease-3> { ttk::scale::Release %W %x %y }
-bind TScale <Left> { ttk::scale::Increment %W -1 }
+## Keyboard navigation bindings:
+#
+bind TScale <<LineStart>> { %W set [%W cget -from] }
+bind TScale <<LineEnd>> { %W set [%W cget -to] }
+
+bind TScale <<PrevChar>> { ttk::scale::Increment %W -1 }
bind TScale <Up> { ttk::scale::Increment %W -1 }
-bind TScale <Right> { ttk::scale::Increment %W 1 }
+bind TScale <<NextChar>> { ttk::scale::Increment %W 1 }
bind TScale <Down> { ttk::scale::Increment %W 1 }
-bind TScale <Control-Left> { ttk::scale::Increment %W -10 }
+bind TScale <<PrevWord>> { ttk::scale::Increment %W -10 }
bind TScale <Control-Up> { ttk::scale::Increment %W -10 }
-bind TScale <Control-Right> { ttk::scale::Increment %W 10 }
+bind TScale <<NextWord>> { ttk::scale::Increment %W 10 }
bind TScale <Control-Down> { ttk::scale::Increment %W 10 }
-bind TScale <Home> { %W set [%W cget -from] }
-bind TScale <End> { %W set [%W cget -to] }
proc ttk::scale::Press {w x y} {
variable State