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 79879 - Eclipse keybindings broken on Mac OS
Summary: Eclipse keybindings broken on Mac OS
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@editor
Keywords: RELNOTE
Depends on:
Reported: 2006-07-09 09:18 UTC by _ tboudreau
Modified: 2007-11-05 13:40 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2006-07-09 09:18:39 UTC
Compare the Eclipse keybindings on Mac OS with actually running Eclipse on Mac 
OS.  Eclipse on Mac OS does the same thing we do on Mac OS - bind most Ctrl-
based shortcuts to Command [META].  For example, Command-Z is undo on Eclipse 
on Mac OS, but Ctrl-Z is our binding for undo on Mac OS.  Which means that on 
Mac OS, we don't actually have Eclipse keybindings - they won't match the 
habits of an Eclipse user.

This can be solved very simply, assuming you're defining the keybindings the 
standard way using Utilities.stringToKey()/keyToString() - just define the 
bindings using D- for Ctrl bindings and they'll automagically be bound to 
Command on mac;  use O- for Alt keybindings and they'll be bound to Alt on 
PC's and Ctrl on macs.  E.g.

CS-O == Ctrl-Alt-O everywhere
DS-O == Ctrl-Alt-O on PC's and Command-Alt-O on macs

AS-O == Alt-Shift-O everywhere
OS-O == Alt-Shift-O on PC's and Ctrl-Shift-O on macs

(remember Alt is not usable as an accelerator on macs)
Comment 1 Jan Jancura 2006-08-11 12:45:58 UTC
fixed in trunk:

IDE: [8/11/06 1:45 PM] Committing "Eclipse-keybindings.xml" started
Checking in Eclipse-keybindings.xml;
<--  Eclipse-keybindings.xml
new revision: 1.12; previous revision: 1.11
IDE: [8/11/06 1:45 PM] Committing "Eclipse-keybindings.xml" finished