From 228ae4aa595df94bda8eec1fe320bd5c0c09971a Mon Sep 17 00:00:00 2001 From: jenglish Date: Wed, 1 Sep 2010 16:40:15 +0000 Subject: library/ttk/entry.tcl: Revert keyboard navigation bindings to use real events instead of virtual events. --- ChangeLog | 5 +++++ library/ttk/entry.tcl | 30 +++++++++++++++--------------- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index efd9465..90695e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-09-01 Joe English + + * library/ttk/entry.tcl: Revert keyboard navigation bindings + to use real events instead of virtual events. + 2010-09-01 Don Porter *** 8.5.9 TAGGED FOR RELEASE *** diff --git a/library/ttk/entry.tcl b/library/ttk/entry.tcl index ef769cd..ebabcb4 100644 --- a/library/ttk/entry.tcl +++ b/library/ttk/entry.tcl @@ -1,5 +1,5 @@ # -# $Id: entry.tcl,v 1.4.2.1 2010/08/26 02:06:10 hobbs Exp $ +# $Id: entry.tcl,v 1.4.2.2 2010/09/01 16:40:15 jenglish Exp $ # # DERIVED FROM: tk/library/entry.tcl r1.22 # @@ -44,7 +44,7 @@ option add *TEntry.cursor [ttk::cursor text] # # , , # , : -# Ttk entry widget doesn't use selection anchor. +# ttk::entry widget doesn't use selection anchor. # : # Inserts PRIMARY selection (on non-Windows platforms). # This is inconsistent with typical platform bindings. @@ -95,19 +95,19 @@ bind TEntry <> { ttk::entry::ScanRelease %W %x } ## Keyboard navigation bindings: # -bind TEntry <> { ttk::entry::Move %W prevchar } -bind TEntry <> { ttk::entry::Move %W nextchar } -bind TEntry <> { ttk::entry::Move %W prevword } -bind TEntry <> { ttk::entry::Move %W nextword } -bind TEntry <> { ttk::entry::Move %W home } -bind TEntry <> { ttk::entry::Move %W end } - -bind TEntry <> { ttk::entry::Extend %W prevchar } -bind TEntry <> { ttk::entry::Extend %W nextchar } -bind TEntry <> { ttk::entry::Extend %W prevword } -bind TEntry <> { ttk::entry::Extend %W nextword } -bind TEntry <> { ttk::entry::Extend %W home } -bind TEntry <> { ttk::entry::Extend %W end } +bind TEntry { ttk::entry::Move %W prevchar } +bind TEntry { ttk::entry::Move %W nextchar } +bind TEntry { ttk::entry::Move %W prevword } +bind TEntry { ttk::entry::Move %W nextword } +bind TEntry { ttk::entry::Move %W home } +bind TEntry { ttk::entry::Move %W end } + +bind TEntry { ttk::entry::Extend %W prevchar } +bind TEntry { ttk::entry::Extend %W nextchar } +bind TEntry { ttk::entry::Extend %W prevword } +bind TEntry { ttk::entry::Extend %W nextword } +bind TEntry { ttk::entry::Extend %W home } +bind TEntry { ttk::entry::Extend %W end } bind TEntry { %W selection range 0 end } bind TEntry { %W selection clear } -- cgit v0.12