This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 135842 - Graceful handling of conflicting keyboard shortcut registrations
Summary: Graceful handling of conflicting keyboard shortcut registrations
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
Keywords: UI
Depends on: 15926
  Show dependency tree
Reported: 2008-05-26 21:50 UTC by _ sandipchitale
Modified: 2016-07-07 07:29 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description _ sandipchitale 2008-05-26 21:50:50 UTC
NetBeans is a modular system in which many modules work cooperatively. However, it is not always possible to guarantee a
priori that modules coming from different sources will not make conflicting demands on the platform. A case in point
being the scarce resource of keyboard shortcuts.

This enhancement proposes a graceful mechanism to handle handle the conflicting keyboard shortcut registration.

When a user invokes such a conflicting key binding (sequence), the NetBeans platform detects it and shows a pop up menu
that looks something like this:

Assume that multiple modules registered actions for keyboard shortcut CTRL+D

Go to Tools:Options:KeyMap to resolve CTRL+D
Action 1 (Module 1)
Action 2 (Module 2)
Keep and Action 1 (Module 1)
Keep and Action 2 (Module 2)
CTRL+D prefix...more actions

The user has following choices:

- go Tools:Options:Keymap panel to fix the conflict.
- invoke one of the actions
- keep the keyboard shortcut (CTRL+D) for one of the actions and then invoke that action. Subsequently the selected
action will be invoked
- proceed to the key map with conflicting prefix. The platform will then wait for the user to enter more key strokes
while showing the prefix sequence in the status bar.
Comment 1 Jiri Skrivanek 2008-11-18 15:21:14 UTC
Maxi, could you please evaluate?
Comment 2 Max Sauer 2008-11-18 15:50:50 UTC
This is not easy to implement, and in fact it is more an keymap storage issue, since there has to a support for loading more actions for a keybinding, 
currently, the last loaded wins. With better mapping (keybinding2actionCollection) of loaded action, the requested functionality could be implemented. This 
means a lot of work unfortunately. Lets focus NEXT release. 
Comment 3 Jesse Glick 2008-11-18 18:36:27 UTC
See my comment from issue #15926 in 2002.
Comment 4 Martin Balin 2016-07-07 07:29:50 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss