Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 26589 - EC: cannot type curly braces on German keyboard
Summary: EC: cannot type curly braces on German keyboard
Status: RESOLVED DUPLICATE of bug 20953
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P2 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 25366 26761 26778 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-18 10:33 EST by Grant Gayed CLA
Modified: 2003-02-19 11:08 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed CLA 2002-11-18 10:33:40 EST
M3 build, from Eclipse Corner:

> as of today I have a pretty anoying "bug" in Eclipse. Namely I can't type
> "{" and "}" anymore.
> This is M3 on OS X 10.2.2 with Java 1.3.1 on a german keyboard ({ =
> <opt>-8 etc.)

A follow-up:

> I've got the same problem on danish keyboards but if I hold down the
> apple key too i works. I've haven't got around to look at why ..

Note that bug 24493 was fixed in M3, which could be related since it addresses 
a similar issue for the other platforms.
Comment 1 Christophe Cornu CLA 2002-11-19 10:52:23 EST
Steve to investigate and advise
Comment 2 Andre Weinand CLA 2002-11-19 11:38:03 EST
*** Bug 25366 has been marked as a duplicate of this bug. ***
Comment 3 Andre Weinand CLA 2002-11-20 18:08:03 EST
*** Bug 26761 has been marked as a duplicate of this bug. ***
Comment 4 Andre Weinand CLA 2002-11-20 18:20:04 EST
*** Bug 26778 has been marked as a duplicate of this bug. ***
Comment 5 Veronika Irvine CLA 2002-11-21 09:02:06 EST
Reassigning this bug to Andre because we do not have a German keyboard for the 
Mac.
Comment 6 Andre Weinand CLA 2002-11-22 06:13:02 EST
On MacOS some ISO characters can only be entered by using the 'alt' modifier or both  
the 'alt' and 'command' modifiers. On non-US keyboards this applies even for frequently 
used characters like '{', '}', '#'.

Note: the problem can be reproduced even if you don't have a non-US keyboard: just 
add the German keyboard layout to your input menu (System Preferences/International/
Input Menu), switch to German kbd layout, and try to enter a '{' with 'alt'-8.

Since StyledText.handleKey filters all key combination containing the 'alt' modifier, it is 
not possible to enter '{', '}', '#'. However, key combination containing 'alt' AND 'control' are 
not ignored because this modifier combination is used on Windows to enter special 
characters. So I propose to add similiar special cases for 'alt' and 'alt'+'command' for the 
Macintosh platform.

An ugly workaround would be for SWT on MacOS to remove the 'alt' modifier from all key 
events where it was used to input the special characters '{', '}', '#'.
Comment 7 Christophe Cornu CLA 2002-11-22 09:15:14 EST

*** This bug has been marked as a duplicate of 20953 ***
Comment 8 Alex Blewitt CLA 2003-02-19 11:08:19 EST
FWIW I can now insert # in Eclipse 2.1M5 on Mac OS X 10.2.4