Community
Participate
Working Groups
R3.0 I tried use the Scroll Lock key for a view and failed due to 1) getting the Scroll Lock state was only possible via internal code: OS.GetKeyState(OS.VK_SCROLL) 2) found no way to set the Scroll Lock state e.g. OS.SetKeyState(OS.VK_SCROLL, boolean); Another example is to show the CAPS Lock state in the status line when editing text and allow to toggle it via double-click.
FH and SN to look into this. Setting and getting the keyboard state on non- Windows platforms is problematic. Perhaps we could just support querying the NumLock and ScrollLock state.
This is similar to bug 74736, which asks for a way to get the current state of modifier keys (ctrl, alt, and shift).
caps lock is another interesting case.
Here's my usecase: I need to be able to type the text 'Hello World' using the automation api. In order to type 'H', I need to be able to decide whether I should be holding the shift key down(or not) based on the state of the CAPS key. This is a blocker for swtbot to be able to use the new automation api that the swt team is providing. Raising severity and version number to 3.5
Steve, this will require new API. Note: at this point we will need PMC approval to add any new API for Eclipse 3.5
We can set warning control decorator to password text filed if CAP LOCK is ON.