cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
0 Kudos

JSL function to get the current status of modifier keys

☑ cool new feature
☐ could help many users!

☐ removes something that feels like a „bug“

☐ nice to have

☐ nobody needs it

 

What inspired this wish list request? 

In JSL there are functions like 

is control key()

to get the current status of modifier keys,

 

unfortunately, 

This function does not return the current state of the control key but rather the state of the control key at the start of another event like mouse click or key press. 
Checking for modifier keys (ctrl, alt, shift) in script without mouse trapping 

 

 

What is the improvement you would like to see? 

As  JMP does have an internal function to get the modified key state at any time but this is not exposed via JSL.
Checking for modifier keys (ctrl, alt, shift) in script without mouse trapping 

... could you please provide a JSL function to expose the current status of a modifier key

 

 

Why is this idea important? 

This will allow JSL programmers to generate Toolbars and commands in the menu on a completely new level:
depending on the status of a modifier key, different actions could be triggered (!!!)

 

similar add-on functionality could also boost standard platforms:

- A user could specify a DEFAULT action in the preferences. If a user clicks on Subset, Summary, Tabulate, Graph Builder - holding SHIFT - the DEFAULT action is executed ... without any need to manually enter the settings.

- with a control key, the action could be triggered with the RECALL settings.

 

other wishes from hogi_1-1713794956634.png