In my application I have a screen where I use Accelerators. I'm using the function key F3 to execute an operation in my application. It works fine everytime, but when I click in any TextField on this screen the function key doesn't execute.
Here is the code where I set the Accelerator:
scene.getAccelerators().put(
new KeyCodeCombination(KeyCode.F3),
new Runnable() {
@Override
public void run() {
// do sth here
}
}
);
When I click my textfield and then hit the F3 function key it doesn't work. Someone knows the solution?