Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Unified Diff: third_party/WebKit/Source/core/input/KeyboardEventManager.cpp

Issue 2121843002: Don't perform the default action when keyCode is 229. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
index 185a0664514f3bcd94012ca3f4ed2f39c5f549e5..49c6d0b13a2b06180d718245deb200ba586b4b6f 100644
--- a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
@@ -162,6 +162,11 @@ void KeyboardEventManager::defaultKeyboardEventHandler(
m_frame->editor().handleKeyboardEvent(event);
if (event->defaultHandled())
return;
+
+ // Do not perform the default action when inside a IME composition context.
+ // TODO(dtapuska): Replace this with isComposing support. crbug.com/625686
+ if (event->keyCode() == 229)
bokan 2016/07/04 22:52:06 Does this keyCode have a name of some kind that we
+ return;
if (event->key() == "Tab") {
defaultTabEventHandler(event);
} else if (event->key() == "Backspace") {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698