13

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"),
Gergely Toth
  • 6,638
  • 2
  • 38
  • 40

2 Answers2

3

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

Aavery
  • 66
  • 8
0

You can follow the following link where you can remove or add keymap for the project itself. Another suggestion, you can prevent Alt + F7 character when keypress and map it to another character and then use the other characters.

enter image description here

Source:https://ui.netbeans.org/docs/ui/keymap_option_panel/

Read also this:https://netbeans.org/bugzilla/show_bug.cgi?id=249671

I_Al-thamary
  • 3,385
  • 2
  • 24
  • 37