mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-03 20:47:43 +01:00
Mac: Fix the need to press the delete key twice to delete a character after changing the IME language (issue #635).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@686 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
a09896d0d0
commit
61e9bc6007
@ -202,10 +202,10 @@ void ExtractUnderlines(
|
||||
// text was deleted or not after handling the key down event.
|
||||
BOOL oldHasMarkedText = hasMarkedText_;
|
||||
|
||||
// We check if the marked text has only one character and a delete key is
|
||||
// We check if the marked text has one or less characters and a delete key is
|
||||
// pressed. In such cases, we want to cancel IME composition and delete the
|
||||
// marked character, so we dispatch the event directly to WebKit.
|
||||
if (hasMarkedText_ && underlines_.size() == 1) {
|
||||
if (hasMarkedText_ && underlines_.size() <= 1) {
|
||||
// Check for backspace or delete.
|
||||
if ([theEvent keyCode] == 0x33 || [theEvent keyCode] == 0x75)
|
||||
browser_->UIT_GetWebViewHost()->KeyEvent(theEvent);
|
||||
|
Loading…
x
Reference in New Issue
Block a user