bobbylight / RSyntaxTextArea

A syntax highlighting, code folding text editor for Java Swing applications.
BSD 3-Clause "New" or "Revised" License
1.12k stars 259 forks source link

Problem Alt Gr + { (JavaFx and Swing) #350

Open champion2k opened 4 years ago

champion2k commented 4 years ago

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

bobbylight commented 4 years ago

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?

champion2k commented 4 years ago

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

bobbylight commented 4 years ago

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