From 56bc4cc58acd71ebf3dffa34ea192c20cb4bd390 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Thu, 23 Aug 2012 07:06:07 +0000 Subject: new virtual event <> FossilOrigin-Name: 1b0ecb59de555c10d38018b5e123f06da4d3b0bd --- library/tk.tcl | 3 +++ library/ttk/entry.tcl | 2 +- library/ttk/treeview.tcl | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/library/tk.tcl b/library/tk.tcl index 0d8853f..cac9075 100644 --- a/library/tk.tcl +++ b/library/tk.tcl @@ -391,6 +391,7 @@ switch -exact -- [tk windowingsystem] { event add <> event add <> event add <> + event add <> # Some OS's define a goofy (as in, not ) keysym that is # returned when the user presses . In order for tab @@ -439,6 +440,7 @@ switch -exact -- [tk windowingsystem] { event add <> event add <> event add <> + event add <> } "aqua" { event add <> @@ -476,6 +478,7 @@ switch -exact -- [tk windowingsystem] { event add <> event add <> event add <> + event add <> } } diff --git a/library/ttk/entry.tcl b/library/ttk/entry.tcl index 22c4115..f5ba19e 100644 --- a/library/ttk/entry.tcl +++ b/library/ttk/entry.tcl @@ -78,7 +78,7 @@ bind TEntry { ttk::Repeatedly ttk::entry::AutoScroll %W } bind TEntry { ttk::CancelRepeat } bind TEntry { ttk::CancelRepeat } -bind TEntry { +bind TEntry <> { %W instate {!readonly !disabled} { %W icursor @%x ; focus %W } } diff --git a/library/ttk/treeview.tcl b/library/ttk/treeview.tcl index 1160e9b..8772587 100644 --- a/library/ttk/treeview.tcl +++ b/library/ttk/treeview.tcl @@ -43,7 +43,7 @@ bind Treeview { ttk::treeview::ToggleFocus %W } bind Treeview \ { ttk::treeview::Select %W %x %y extend } -bind Treeview \ +bind Treeview <> \ { ttk::treeview::Select %W %x %y toggle } ttk::copyBindings TtkScrollable Treeview -- cgit v0.12