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 104574 - Some emacs key bindings mix up Meta and Ctrl on Mac OS X (NB 6.0 M9)
Summary: Some emacs key bindings mix up Meta and Ctrl on Mac OS X (NB 6.0 M9)
Status: RESOLVED DUPLICATE of bug 99403
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-23 06:13 UTC by aufflick
Modified: 2007-11-05 13:40 UTC (History)
1 user (show)

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 aufflick 2007-05-23 06:13:19 UTC
Some emacs key bindings mix up Meta and Ctrl on Mac OS X.

For example, insertion point to start of line is Meta-A instead of Ctrl-A.

Not all bindings are incorrect - eg. C-x C-s for save is correct.

The bindings in the Windows version appear correct (I haven't checked the Unix
version).

Found in NB 6.0 M9
Comment 1 Max Sauer 2007-05-23 11:01:20 UTC
Reproducible, on MacOS only.

Keybindings for emacs seem to be properly defined inside
org.netbeans.module.defaults.Emacs-keybindings.xml. The issue seem to affect all
keybindings listed there -- the D and O aliases do not work properly on Mac,
eventough they work as expected on Unix or Windows.

The shorcut for save action (C-x C-s) is defined somewhere else, I can't find
where. The 'Ctrl' is probably hardcoded there, and that's why it works where the
other shortcuts do not.

---
MacOS 10.4.8
JDK 1.5.0 update 7 i386
NetBeans 070523
Comment 2 Vitezslav Stejskal 2007-05-24 06:28:41 UTC
I think D-, O- switches are working fine. The problem is that we are using them
too agresively in the Emacs profile. Basically, we use D-, O- for every shortcut
that is ctrl-, alt- on win/linux and they translate to Meta- and Ctrl- on Mac.
This works well for Netbeans profile, but is a disaster for Emacs profile,
because suddenly on Mac a lot of Emacs shortcuts is bound to Meta- instead of
Ctrl- and they seem to not work.

This is exactly the case of 'caret-line-first-column' action wich is bound to
D-A, translating to Ctrl-A on win/linux and Meta-A on Mac.

I think we should simply stop using D- and change it to C- (hard Ctrl- without
any translation) for all Emacs bindings, except of those that would conflict
with MacOS functions.
Comment 3 enebo 2007-08-13 19:12:24 UTC
This is a duplicate of issue 99403.
Comment 4 Vitezslav Stejskal 2007-08-20 12:40:43 UTC
Yeah, it' looks like a duplicate. Please feel free to close dupes by yourself.

*** This issue has been marked as a duplicate of 99403 ***