I am developing a programming tool on the Netbeans Platform. In that, I have an action to find usages and I want to add Alt + F7 as a shortcut to fire my action. I have implemented this for Alt + F3 and some other shortcuts.
But in this case, Alt + F7 is already used in the Netbeans Platform to find usages.
How can I override Alt + F7 ?
Here is what I have already done:
@ActionRegistration(displayName = "#CTL_FindUsagesAction")
@ActionReferences(value = {
@ActionReference(path = "Shortcuts", name = "A-F7"),
Editing and Refactoring Code in NetBeansChoose Tools | Options and click the Keymap panel. In the Actions panel, navigate to a command that you want to change, and click Add. In the Add Shortcut dialog box, type in the key combination that you want to use and click OK.
Type "sout" then hit tab.
You could try to disable or change the shortcut using alt + f7 via a custom keymap.
Tools>Options>Keymap
http://wiki.netbeans.org/Keyboard_Shortcuts
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With