"Toggle Line Comments" Accelerator Does Not Work on All Keyboards


In the JDeveloper Code Editor, you can select lines and toggle the comments by selecting the menu Source -> Toggle Line Comments.
The corresponding accelerator key is CTRL+/, but it doesn't work for all keyboards.
For example, on my Belgian keyboard, there is no "/" key. The "slash" can only be accessed by pressing simultaneously the SHIFT and ":" ("colon") keys:
ShiftColon:

To have the accelerator working correctly, you should redefine the accelerator keys mapped to the "Toggle Line Comments" action:
Select menu Tools -> Preferences...
In the Preferences dialog select Accelerators and under Actions select Toggle Line Comments.
Click Remove to remove the current accelerators:
Accelerator_1:

Then click the New Accelerator field and press the keys you would like to associate to the action.
For example, CTRL + SHIFT + :  (CTRL + SHIFT + Colon)
The field New Accelerator will display the keys you pressed.
You can then click Add:
Accelerator_2:

and your accelerator is now defined:
Accelerator_3:

Click OK
The Toggle Comment Lines accelerator will now work.

Comments:

Post a Comment:
Comments are closed for this entry.
About

Didier Laurent - Sr Principal Support Engineer in the JDeveloper team

Search

Archives
« February 2015
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
       
       
Today