diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2012-08-23 07:06:07 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2012-08-23 07:06:07 (GMT) |
commit | 56bc4cc58acd71ebf3dffa34ea192c20cb4bd390 (patch) | |
tree | 98cd5df8f230d58c716424c23de82310a2b9dd0a /library/ttk | |
parent | 595aa02b0f345114e1ebf159b473110da232d797 (diff) | |
download | tk-56bc4cc58acd71ebf3dffa34ea192c20cb4bd390.zip tk-56bc4cc58acd71ebf3dffa34ea192c20cb4bd390.tar.gz tk-56bc4cc58acd71ebf3dffa34ea192c20cb4bd390.tar.bz2 |
new virtual event <<ToggleSelection>>
FossilOrigin-Name: 1b0ecb59de555c10d38018b5e123f06da4d3b0bd
Diffstat (limited to 'library/ttk')
-rw-r--r-- | library/ttk/entry.tcl | 2 | ||||
-rw-r--r-- | library/ttk/treeview.tcl | 2 |
2 files changed, 2 insertions, 2 deletions
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 <B1-Leave> { ttk::Repeatedly ttk::entry::AutoScroll %W } bind TEntry <B1-Enter> { ttk::CancelRepeat } bind TEntry <ButtonRelease-1> { ttk::CancelRepeat } -bind TEntry <Control-ButtonPress-1> { +bind TEntry <<ToggleSelection>> { %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 <KeyPress-space> { ttk::treeview::ToggleFocus %W } bind Treeview <Shift-ButtonPress-1> \ { ttk::treeview::Select %W %x %y extend } -bind Treeview <Control-ButtonPress-1> \ +bind Treeview <<ToggleSelection>> \ { ttk::treeview::Select %W %x %y toggle } ttk::copyBindings TtkScrollable Treeview |