Home > Archive > Tcl > January 2008 > Bindings info
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| tunity 2008-01-28, 7:43 pm |
| I amusing Button1 bindings on a list box. The bindings work when I
click on an item. They also work in conjunction with Shift or Control
buttons. Is there a way to see what keys, if any, have been pressed
simultaneously to the Button1 clicks? In other words, if I click on
the listbox while holding down the Shift key or Control key, I would
like to know that, without having to declare multiple bindings for
each case.
| |
| Bryan Oakley 2008-01-28, 7:43 pm |
| tunity wrote:
> I amusing Button1 bindings on a list box. The bindings work when I
> click on an item. They also work in conjunction with Shift or Control
> buttons. Is there a way to see what keys, if any, have been pressed
> simultaneously to the Button1 clicks? In other words, if I click on
> the listbox while holding down the Shift key or Control key, I would
> like to know that, without having to declare multiple bindings for
> each case.
>
Doing multiple bindings is generally the easiest IMO. You can also look
at the value of the %s binding substitution to ferret out which keys are
being held down.
Have a look at this page: http://wiki.tcl.tk/4238
--
Bryan Oakley
http://www.tclscripting.com
|
|
|
|
|