Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key Location #539

Open
AndyObtiva opened this issue Nov 3, 2021 · 0 comments
Open

Key Location #539

AndyObtiva opened this issue Nov 3, 2021 · 0 comments

Comments

@AndyObtiva
Copy link

I noticed that keyLocation is not part of AreaKeyEvent. It is basically the indicator of whether the user pressed the right shift key or left shift key. Alternatively, it indicates if the user pressed a num pad number of a standard number.

SWT supports it: https://help.eclipse.org/latest/topic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/swt/events/KeyEvent.html

Web Browser JS supports it too: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/location

By the way, I needed the keyLocation to make a distinction between right and left shift (or control) keys while playing Glimmer Tetris. For now, I resorted to another solution (make shift turn right and control turn left).

Screen Shot 2021-11-03 at 1 26 02 PM

Thanks for providing such a great GUI library.

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant