Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add Alt + F7 as shortcut to an action in Netbeans platform

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"),
like image 507
Gihan Saranga Siriwardhana Avatar asked Dec 20 '18 13:12

Gihan Saranga Siriwardhana


People also ask

How do I change keyboard shortcuts in NetBeans?

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.

What is the shortcut for system out Println in NetBeans?

Type "sout" then hit tab.


1 Answers

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

like image 186
Aavery Avatar answered Oct 14 '22 00:10

Aavery