RSyntaxTextArea icon indicating copy to clipboard operation
RSyntaxTextArea copied to clipboard

Problem Alt Gr + { (JavaFx and Swing)

Open champion2k opened this issue 5 years ago • 3 comments

Hello, I am using RSyntaxTextArea in a JavaFX project, and i have a problem when entering the character "{" in the TextArea, it does nothing does not enter it ,,something does not work properly but if i try with the character "}" or any other character, it writes it perfectly. The way to access this character on my keyborad is Alt Gr + {. How could i fix it? Thank you very much for the help

champion2k avatar Jun 22 '20 14:06 champion2k

Is this Linux? There have been issues with Linux input in the past (still on this forum) so this may be that rearing it's ugly head again.

Another odd question, but is this a qwerty keyboard or a different layout?

Does this happen if you build a regular Swing app using RSTA or only if you embed it in JavaFX?

bobbylight avatar Jun 23 '20 02:06 bobbylight

It is Windows. The keyboard is QWERTY. I have tried with a Swing app and it works perfectly. My project is in JAVAFX, and RSTA im integrating iit , thorugh a SwingNode , im trying to add the actión in InputMap, but i cant get to do it. InputMap inputMap = textArea.getInputMap(); inputMap.put(KeyStroke.getKeyStroke('{'), Action); thanks so much for you help and your fast answer

champion2k avatar Jun 23 '20 09:06 champion2k

OK, I'll take a look and see if I can reproduce it.

bobbylight avatar Jun 27 '20 16:06 bobbylight