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 145754 - Mac Keyboard Shortcuts...
Summary: Mac Keyboard Shortcuts...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P4 blocker (vote)
Assignee: Max Sauer
URL: http://sites.google.com/site/jcrada
Keywords:
Depends on:
Blocks: 152193
  Show dependency tree
 
Reported: 2008-09-01 04:38 UTC by jcrada
Modified: 2009-02-19 20:45 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 jcrada 2008-09-01 04:38:27 UTC
Most of the keyboard shortcuts are not natural MacOS shortcuts. Examples of these are Redo (Cmd+Shift+Z instead of Cmd+Y), Delete Previous Word 
(Option + backspace), Delete Next Word (Option + delete), Insertion Point to Begining of Document (Cmd + UP_ARROW), Insertion Point to End of 
Document (Cmd + DOWN_ARROW), among others I can not remember right now. 
The most annoying problem is that Edit->Redo can not be reassigned. I also tried to assign Cmd + R to Run Project, and that did not work (it kept 
showing the Replace dialog).
Comment 1 Jiri Prox 2008-09-01 10:03:54 UTC
the problem with reassigning cmd-R seems to be fixed in 6.5.

Can you please list all the action which are not natural to MacOS (current shortcut, default Mac shortcut) ? 
Thanks.
Comment 2 jcrada 2008-09-06 01:09:20 UTC
Natural Mac Shortcuts are:
Delete Previous Word: Option + Backspace
Delete Next Word: Option + Delete
Extend Selection to Beginning of Document: Command + Shift + UP_ARROW
Extend Selection to End of Document: Command + Shift  + DOWN_ARROW
Insertion Point to Beginning of Document: Command + UP_ARROW
Insertion Point to End of Document: Command + DOWN_ARROW
Back: Command + [
Forward: Command + ]
Redo: Command + Shift + Z
Delete Line: Ctrl + Shift + K (Used in TextMate. Netbeans actually uses Command + E, but personally I think is too easy to make a mistake)
Comment Line: Command + /

These shortcuts are from Mac OS 10.4... Although I guess/hope that Leopard 10.5 are the same.
Thanks for the great work in NetBeans.
Comment 3 Max Sauer 2009-01-05 14:43:42 UTC
OK, presuming alt==Option, apple_key==Command, and trying out with TextEdit.app,
I've set:

Delete Previous Word: Option + Backspace
Delete Next Word: Option + Delete
Insertion Point to Beginning of Document: Command + UP_ARROW
Insertion Point to End of Document: Command + DOWN_ARROW
Back& Forward: Won't change, lot of people is accustomed to it.
Redo: Made Command-Shift-Z the only shortcut on Mac
Delete Line: Won't change, lot of people is accustomed to it.
Comment Line: Already there

I won't touch Extend Selection* because of conflicts with 'Copy/Move selection or Line up/down'. We will have to come up with a solution in the future.

Comment 4 Max Sauer 2009-01-05 15:08:22 UTC
Fixed:
http://hg.netbeans.org/main/rev/ebd6adcb8cd1
Comment 5 Quality Engineering 2009-01-06 05:28:15 UTC
Integrated into 'main-golden', will be available in build *200901060201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ebd6adcb8cd1
User: Max Sauer <msauer@netbeans.org>
Log: #145754: Mac Keyboard Shortcuts...