Hi Alex,
The more I look at it, the less I think it's a FEST bug, but a java
issue.
The keyboard layout is not the same on Mac, at least on my MacBook.
Using this :
public class TestRobot extends JFrame {
public TestRobot() {
JPanel panel = new JPanel();
setContentPane(panel);
panel.add(new JLabel("Label:"));
panel.add(new JTextField(15));
}
public static void main(String[] args)
throws Exception {
JFrame frame = new TestRobot();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
Robot robot = new Robot();
robot.setAutoDelay(500);
robot.keyPress(KeyEvent.VK_X);
robot.keyPress(KeyEvent.VK_A);
robot.keyPress(KeyEvent.VK_B);
robot.keyPress(KeyEvent.VK_C);
robot.keyPress(KeyEvent.VK_SHIFT);
robot.keyPress(KeyEvent.VK_2);
robot.keyPress(KeyEvent.VK_PERIOD);
robot.keyRelease(KeyEvent.VK_SHIFT);
robot.keyPress(KeyEvent.VK_PERIOD);
robot.keyPress(KeyEvent.VK_A);
}
}
Here is the output on French OSX with french keyboard : xqbc2/:q
Is it a OSX bug? I don't know since I don't have any other machine
with French OS and french keyboard.
Can somebody test it on Windows?
Like I said, it's not going to be an easy one.
Thanks,
Olivier