Is it possible to disable some or all Shortcuts in a Plugin?
Posted by
Lambacher, Armin on
Jun 27, 2016; 1:55pm
URL: http://imagej.273.s1.nabble.com/Recorder-not-always-working-in-java-tp5016723p5016737.html
Hello,
I want to make my plugin react to take some action when the users presses specific keys.
At the moment I use keys that are not connected to a shortcut, this works well by making my plugin implement KeyListener and using the function "keyPressed(KeyEvent e)”.
However, I am not able to get keys that are already used as a shortcut. Can I disable certain shortcuts in my plugin and then use those “free” keys to do my own work? If necessary, I can disable ALL shortcuts, as during the evaluation I don’t need any predefined shortcuts.
If possible I would like to reactivate the disabled shortcuts after finishing my plugin.
Best
Armin
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html