Does JSField.CHECKS intercept onAction JSEvent.MODIFER_SHIFT

Questions, tips and tricks and techniques for scripting in Servoy

Does JSField.CHECKS intercept onAction JSEvent.MODIFER_SHIFT

Postby joe26 » Sat Mar 31, 2018 7:26 am

Hi All,

It looks like onAction is the left mouse button, since there is no onLeftClick selection for a newField.

I'm attempting to run a script that runs on a change of value that also checks the JSEvent.MODIFIER_SHIFT value from event.getModifiers. That value doesn't seem to pass Modifier info into the script.

Is this overridden by the CheckBox element? I'm using a script with newField.onRightClick and that seems to work, but nothing on either onAction or onDataChange.

var condition = (event.getModifiers() & JSEvent.MODIFIER_SHIFT);
always returns zero in the onAction and onDataChange events for the newField.CHECKS

thanks,
--Joe.
joe26
 
Posts: 172
Joined: Wed Jun 19, 2013 10:30 pm

Return to Methods

Who is online

Users browsing this forum: No registered users and 1 guest

cron