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 241849

Summary: Shortcut for menu item "Source" > "Format" ignores my Dvorak keyboard layout and assumes Qwerty layout.
Product: platform Reporter: basil.bourque
Component: Window SystemAssignee: Stanislav Aubrecht <saubrecht>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description basil.bourque 2014-02-13 22:47:59 UTC
The Source > Format menu item says it has a keyboard shortcut of Control+Shift+F. Unfortunately, for this particular shortcut NetBeans assumes I have a Qwerty keyboard layout. When I press the physical key marked "Y" (Qwerty physical keyboard), the short cut fails. I have to press the physical key marked "F" to invoke the shortcut.

But I do not have Qwerty layout. I have my Apple System Preferences > Keyboard > Input Source set to "Dvorak' first and "U.S." (Qwerty) second. When Mac OS X was installed, US Qwerty was indeed the keyboard layout chosen. But my Apple System Preferences setting should overrule that in NetBeans.

Oddly, the shortcut to toggle a line as commented-out or commented-in (prepending or removing "//") is Command+/, and this shortcut does respect my soft keyboard layout (Dvorak). I press the physical key marked "[" which in Dvorak is the forward-slash key. 

Why does one keyboard shortcut respect my soft keyboard layout and another does not?

On a related note, why does the Source > Toggle Comment menu item not display the Command+/ shortcut when its menu is pulled down (displayed) but Source > format *does* show a shortcut? Is that a clue?

--Basil Bourque



Product Version = NetBeans IDE 8.0 Beta (Build 201401141042)
Operating System = Mac OS X version 10.8.5 running on x86_64
Java; VM; Vendor = 1.8.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.0-b69
Comment 1 basil.bourque 2014-02-13 22:48:03 UTC
Created attachment 145172 [details]
IDE log