diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-19 03:13:31 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-19 03:13:31 +0000 |
commit | 3ae1feb620daffbdf65d4b11038268da2e14090e (patch) | |
tree | d496395a3a932cd83618c9ee9c68e0f5113b8f13 /chrome/browser/ime_input.h | |
parent | 034b3c6d0acaed4260b255c24a853bd92fd7e4df (diff) | |
download | chromium_src-3ae1feb620daffbdf65d4b11038268da2e14090e.zip chromium_src-3ae1feb620daffbdf65d4b11038268da2e14090e.tar.gz chromium_src-3ae1feb620daffbdf65d4b11038268da2e14090e.tar.bz2 |
Make backspace not go back while IME is active.
Linux does this in GtkIMContextWrapper::ProcessFilteredKeyPressEvent() by setting hardware_keycode to 0. It's a pain to change an NSEvent, so I just added a bool "skip" to NativeWebKeybordEvent and set it to "true" for rawkeydowns while ime is active.
BUG=25000
TEST=Open webpage. Focus text field. Type something, hit backspace. Text should be deleted. Focus background, hit backspace. Browser should go back one page. Focus text field, start IME (either by going to syspref->international->input menu and enabling e.g. "Kotoeri" and then selecting this in the top right corner and typing a single "a", or by just activating dead key ime on an us layout by hitting opt-u, opt-i, or opt-e), hit backspace. Browser should not go back but end IME mode.
Review URL: http://codereview.chromium.org/295003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29388 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ime_input.h')
-rw-r--r-- | chrome/browser/ime_input.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/ime_input.h b/chrome/browser/ime_input.h index 2f1d1b9..b26c277 100644 --- a/chrome/browser/ime_input.h +++ b/chrome/browser/ime_input.h @@ -93,7 +93,7 @@ class ImeInput { ImeInput(); ~ImeInput(); - // Retrieves whether or not there is an ongiong composition. + // Retrieves whether or not there is an ongoing composition. bool is_composing() const { return is_composing_; } // Retrieves the input language from Windows and update it. |