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 211101 - Problems with hotkey assignement and hotkey allready used determination
Summary: Problems with hotkey assignement and hotkey allready used determination
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 7.1.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords: UI
Depends on:
Blocks: 211167
  Show dependency tree
 
Reported: 2012-04-12 13:27 UTC by roverwhite
Modified: 2012-04-23 11:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description roverwhite 2012-04-12 13:27:07 UTC
In setup dialog we have hotkeys assignement page.
On this page we can assign hotkeys to different actions.
We can assign single keys, key-combinations, key-sequences, and sequences of key-combinations.
For example we will try to assign seqence ( "CTRL+BACKQUOTE" "H") to some action.
Then we will test it and we will see that it's working.
Next we will try to assign seqence ( "CTRL+BACKQUOTE" "D") to some other action.
And we will fail to assign with the message "CTRL+BACKQUOTE" is allready occupied.
But actualy "CTRL+BACKQUOTE" is not occupied by itself, insted it is used in key-sequence as first step.
So the problem is: incorrect determination of keys or key-combinations usage then they are used in key-sequences.

Also i want to request feature to allow unlimited key combinations to be assigned to one action.
For now some actions, that need additational combinations, 
you allready included duplicate actions in hotkey editor with annotation (additational combination).
But it will be much better to have simply collections of assigned key-combinations for each action insted of this.
So this collections will allow to assign many hot-keys combinations for each single action.

Also it will be very usefull to select all actions in hotkeys editor, then press Ctrl-C and paste them all into some other application (Excel for example).
This allready done, but you can select only single action at once.

Product Version = NetBeans IDE 7.1.1 (Build 201203012225)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_03
Runtime = Java HotSpot(TM) 64-Bit Server VM 22.1-b02
Comment 1 Theofanis Oikonomou 2012-04-23 11:15:59 UTC
(In reply to comment #0)
> In setup dialog we have hotkeys assignement page.
> On this page we can assign hotkeys to different actions.
> We can assign single keys, key-combinations, key-sequences, and sequences of
> key-combinations.
> For example we will try to assign seqence ( "CTRL+BACKQUOTE" "H") to some
> action.
> Then we will test it and we will see that it's working.
> Next we will try to assign seqence ( "CTRL+BACKQUOTE" "D") to some other
> action.
> And we will fail to assign with the message "CTRL+BACKQUOTE" is allready
> occupied.
> But actualy "CTRL+BACKQUOTE" is not occupied by itself, insted it is used in
> key-sequence as first step.
> So the problem is: incorrect determination of keys or key-combinations usage
> then they are used in key-sequences.

This is the intended behavior, which in order to work with multi-keybinding properly, does not allow e.g. 'Ctrl+J' and 'Ctrl+J X' at the same time

> 
> Also i want to request feature to allow unlimited key combinations to be
> assigned to one action.
> For now some actions, that need additational combinations, 
> you allready included duplicate actions in hotkey editor with annotation
> (additational combination).
> But it will be much better to have simply collections of assigned
> key-combinations for each action insted of this.
> So this collections will allow to assign many hot-keys combinations for each
> single action.

You can add alternative shortcut for an action. Click on the "..." button in the shortcut and select "Add alternative". Or use the @ActionReference annotation as many times as you need in your action.

> 
> Also it will be very usefull to select all actions in hotkeys editor, then
> press Ctrl-C and paste them all into some other application (Excel for
> example).
> This allready done, but you can select only single action at once.

You can use the "Manage Profiles..." button to export all the shortcuts at once.

> 
> Product Version = NetBeans IDE 7.1.1 (Build 201203012225)
> Operating System = Windows 7 version 6.1 running on amd64
> Java; VM; Vendor = 1.7.0_03
> Runtime = Java HotSpot(TM) 64-Bit Server VM 22.1-b02