event.getModifiers no WebClient compatibility ?

I searched the http://wiki.servoy.com/display/public/DOCS/Web+Client+compatibility+overview
It says nothing about event.getModifiers().

But it seems not to work with (for example) a Shift-click on a button:
In the globals.onAction(event) my first statement is if(event.getModifiers()==17), but
it only works with the smartclient.

Any suggestions about this ?

Alessandro,

The modifiers are a bit-pattern, so if you want to check if the shift key was pressed, check the modifier bit like this:

if ((event.getModifiers() & JSEvent.MODIFIER_SHIFT) != 0)
{
	application.output("shift")
}

This works both in smart and web client.

Rob

rgansevles:
The modifiers are a bit-pattern

That was it. I now understand and it works fine in web and smartclient.
Thanke you Rob !