pacificIT / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

[CEF1][Mac] Need to press delete key twice to delete character when IME is enabled #635

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open CEFClient
2. Load http://www.google.com
3. Type the letter 'a'
4. Turn on a Japanese keyboard:
System Prefeferences -> Language & Text -> Input Sources -> Kotoeri
5. Change the current system keyboard to "Katakana"
6. Type the letter 'a'
7. Type delete
8. Type delete again to delete the first typed letter

What is the expected output? What do you see instead?
Nothing happens, the first character is not deleted. Pressing delete once again 
will erase the first letter.

What version of the product are you using? On what operating system?
CEFClient at revision #679 on Mac OS X 10.7.

Please provide any additional information below.
This is related to issue 557 
http://code.google.com/p/chromiumembedded/issues/detail?id=557&can=1&q=IME
The submitted patch incorrectly handles this situation.

Original issue reported on code.google.com by mihai.o....@gmail.com on 11 Jun 2012 at 11:32

GoogleCodeExporter commented 9 years ago
This is related to the problem we've had when enabling IME on Mac in issue 557.
The problem we're facing is that NSTextInputClient methods are not accessed in 
this scenario, so we manually check if delete is pressed and forward it to 
WebKit.  Patch added.

Original comment by mihai.o....@gmail.com on 11 Jun 2012 at 11:37

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, fixed in revision 686 and revision 687.

Original comment by magreenb...@gmail.com on 11 Jun 2012 at 6:44