Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346171 - Composition ignores typed key after pending accent
Summary: Composition ignores typed key after pending accent
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-17 19:03 EDT by Hugo Corbucci CLA
Modified: 2011-05-18 13:10 EDT (History)
1 user (show)

See Also:


Attachments
StyledText's behavior of the bug (19.98 KB, video/quicktime)
2011-05-17 19:05 EDT, Hugo Corbucci CLA
no flags Details
TextEdit's behavior of the bug (33.30 KB, video/quicktime)
2011-05-17 19:06 EDT, Hugo Corbucci CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo Corbucci CLA 2011-05-17 19:03:40 EDT
Build Identifier: 20100617-1415

StyledText doesn't follow common behavior regarding pending accents on OS X. Whenever there is a pending composition followed by a non-accentuable key, that key is ignored to confirm the accent. Regular behavior is to confirm the accent and then add the key.
We tried to track down the issue and realized the problem is probably outside of the Java code. It looks like interpretKeyEvents on NSResponder might not be called with the proper arguments (maybe on the first keystroke or the second, couldn't identify which) by keyDown method on Composite.

Easy to reproduce with US-International but happens with any keyboard configuration while typing accents.

Reproducible: Always

Steps to Reproduce:
0. Set your keyboard to US-International
1. Create a StyledText
2. Type "'"
3. Type "s"
4. Text should be "'s" but is "'"
Comment 1 Hugo Corbucci CLA 2011-05-17 19:05:12 EDT
Created attachment 195918 [details]
StyledText's behavior of the bug

KeyCstr shows what is being typed. At the end, text should be "Let's" but it's only "Let'".
Comment 2 Hugo Corbucci CLA 2011-05-17 19:06:01 EDT
Created attachment 195919 [details]
TextEdit's behavior of the bug

This is how TextEdit works. Text is "Let's" at the end.
Comment 3 Felipe Heidrich CLA 2011-05-18 12:54:27 EDT
Works for me with 3.7 m7 on Mac OSX 10.6.7

can you please try with a newer version of eclipse ?
Comment 4 Hugo Corbucci CLA 2011-05-18 13:10:16 EDT
Indeed. Works fine on 3.7M7.
Sorry about that.