[fxruby-users] shift key

Jeroen van der Zijp jeroen at fox-toolkit.org
Fri Dec 9 08:48:35 EST 2005


On Friday 09 December 2005 04:31 am, Björn Bergqvist wrote:
> Hello,
> I want to select multiple objects when I press the shift-button.
> Tried to do it with:
> 
> hotKey = fxparseAccel("Shift")
> accelTable.addAccel(hotKey, doc, FXSEL(SEL_COMMAND, :myfunc))

Shift, Alt, and Control are modifier keys.  They're usually not
used by themselves.

More likely, you want to just trap the left mouse button and determine
between click or shift-click by looking at event.state which contains
the modifier mask.


	- Jeroen



More information about the fxruby-users mailing list