DescriptionMake 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.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29388
Patch Set 1 #Patch Set 2 : cleanup #
Total comments: 9
Patch Set 3 : Call setKeyIdentifierFromWindowsKeyCode(). #Patch Set 4 : s/skip/skip_in_browser/ #
Messages
Total messages: 7 (0 generated)
|