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 223818 - Unable to Assign Alt + Slash to an action
Summary: Unable to Assign Alt + Slash to an action
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 7.3
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2012-12-14 03:00 UTC by cschanck
Modified: 2013-03-20 13:39 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 cschanck 2012-12-14 03:00:16 UTC
For reasons I can no longer explain, I am ingrained to use Alt+Slash for code completion. I can easily remap Netbeans 7.2 to use this mapping under Windows. 

However, using Mac OSX (Mountain Lion), I'm unable to do this. The dialog box will not let me assign Alt+<anything>; it pops up a message about no more shortcuts available for "Alt" (something close to that). 

Not really a showstopper for others, I am sure, but for me it is a deal breaker. And weird, as IntelliJ and Eclipse have no trouble. 

Under OSX, this behavior is the same for both 7.2.1, 7.3 beta, and the 12/13/12 nightly.
Comment 1 Svata Dedic 2012-12-14 06:24:31 UTC
Please check that you actually cannot use Alt+something. The suggestion box might say there are no available shortcuts, but in fact, shortcuts with Alt- are not even suggested on Mac. So confirm your shortcut in the table, confirm the dialog, and try.
Comment 2 cschanck 2012-12-14 15:48:23 UTC
Nope, I get "Alt+" in the dialog, but then can't press slash to complete it. Furthermore, I exported, added A+SLASH directly to the keymap, reimported it, and I can SEE Alt-SLASH in the bindings, but it does not work; I get a "divide" symbol instead. Bizarre. 

Like I said, works fine under Eclipse and IntelliJ. jdk7_u10. OSX Mountain Lion.

Note that 7.3 beta hangs when run, but the nightly does work and exhibit this behavior. Plus, of curse, 7.2.1 fails the same way.
Comment 3 Svata Dedic 2013-03-20 13:39:06 UTC
What JRE are you using ? I can see there was a change in keyboard events from events between JRE 1.6 and 1.7. While in 1.6, the key combination came as alt-Slash, in 1.7 it does not trigger key pressed (which may be OK), but comes directly as key typed for the target character.

Even if I enhance the support in the configuration line, JDK will not able to convert the keystroke forward/backward to text form.

I filed a bug against JDK: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=9000889. When resolved, this issue should be solved as well without intervention to NB code.