In my application, I have a screen where I use Accelerators. I use the F3 function key to perform an operation in my application. It works great every time, but when I click on any text field on this screen, the function key is not executed.
Here is the code where I install Accelerator:
scene.getAccelerators().put(
new KeyCodeCombination(KeyCode.F3),
new Runnable() {
@Override
public void run() {
}
}
);
When I press my text box and then press the F3 function key, it does not work. Does anyone know a solution?
source
share