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

AZERTY keyboard on Windows OS: SHORTCUT+SLASH key event does not run its consumer #479

Closed
ouaibsky opened this issue Apr 4, 2017 · 5 comments

Comments

@ouaibsky
Copy link

ouaibsky commented Apr 4, 2017

Hi

I try to set a key shorcut on a CodeArea like this:

        Nodes.addInputMap(codeAreaInstance
                          consume(keyPressed(SLASH, CONTROL_DOWN), this::commentRegion));

But nothing is happening, neither with "/" on numpad or "/" on regular place.
Replacing SLASH by other letter is working fine

Any ideas ?

PS: I'm running on windows 7, jre 8 upd 121 with azerty keyboard

@JordanMartinez
Copy link
Contributor

I'm not sure why that's happening.... Perhaps, the JDK is mis-handling the keyboard input because of the azerty keyboard?

If you add a catch-all KeyEvent listener, what gets outputted when you type CTRL+SLASH?

@JordanMartinez JordanMartinez changed the title Impossible to set key event based SLASH key AZERTY keyboard: setting SHORTCUT+SLASH key event does not run its consumer May 26, 2017
@JordanMartinez
Copy link
Contributor

@ouaibsky any updates on this?

@ouaibsky
Copy link
Author

Hi

A short update: While SLASH is working fine on my macbook pro, it fails on common windos keyboard (French)
I didn't investigate further more since I discover that DIVIDE is working fine.

Hope it helps
Chris.

@JordanMartinez
Copy link
Contributor

So.... there's a workaround for this and it works for you? If so, I can close this, correct?

@JordanMartinez JordanMartinez changed the title AZERTY keyboard: setting SHORTCUT+SLASH key event does not run its consumer AZERTY keyboard on Windows OS: SHORTCUT+SLASH key event does not run its consumer Oct 31, 2017
@JordanMartinez
Copy link
Contributor

Since this doesn't seem entirely dependent upon RichTextFX and since you've posted your workaround, I'm closing this. Please reopen if it seems appropriate.

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

No branches or pull requests

2 participants