event.getModifiers() != JSEvent.MODIFIER_SHIFT

in the wicki i found the following example:

if (event.getModifiers() & JSEvent.MODIFIER_SHIFT)

But in my debugger i found out, that when i click a button with Shift-Click

event.getModifiers() values 17
JSEvent.MODIFIER_SHIFT values 1

so this example-code alway ends with a case false.

Thanke you for any suggestions about this ?

Alessandro,

See my previous post, it just checks the shift bit, other bits are ignored.

Rob