Re: KeyCode in the javafx.scene.robot.Robot interface

2024-05-17 Thread Martin Fox
Mark, > I iterate over each key in that set, sending that keycode to a text > field. I then do the same for each keycode but with the shift key held. > I don't doubt that it could cause havoc in some setups! On a German or Spanish layout on the Mac BACK_QUOTE will invoke a dead key and throw eve

Re: KeyCode in the javafx.scene.robot.Robot interface

2024-05-16 Thread Mark Raynsford
Hello! On 15/05/2024 14:49, Martin Fox wrote: > Mark, > > You may already know this but before JavaFX 21 the Mac and Windows Robot code > had some long-standing bugs with non-US keyboards. Linux is in better shape > but you can encounter problems if the user has installed multiple layouts (I >

Re: KeyCode in the javafx.scene.robot.Robot interface

2024-05-16 Thread Martin Fox
In another thread someone asked whether JavaFX could report which keyboard layout is currently active. I don’t think there’s any useful way of doing this. The Mac organizes layouts using language codes. There are five variants for German and 15 for English. The German variants are ABC-QWERTZ, Au

Re: KeyCode in the javafx.scene.robot.Robot interface

2024-05-15 Thread Martin Fox
Mark, You may already know this but before JavaFX 21 the Mac and Windows Robot code had some long-standing bugs with non-US keyboards. Linux is in better shape but you can encounter problems if the user has installed multiple layouts (I have a PR pending to fix that). That might explain some of

KeyCode in the javafx.scene.robot.Robot interface

2024-05-12 Thread Mark Raynsford
Hello! I maintain a test harness for JavaFX applications: https://www.github.com/io7m-com/xoanon I expose an interface that uses the javafx.scene.robot.Robot interface internally, but I expose a slightly higher level API that allows for (amongst other things) typing text as strings on components