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

Unified Diff: third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp

Issue 2045603002: Handle the "key" field as opposed to keyIdentifier field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove initialization of the view Created 4 years, 6 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
Index: third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp b/third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp
index d1f2f151afd7892ede89b6fbd6040494a8239cd5..6897c92bcce60a723b15bdd9daf3bae310fdd086 100644
--- a/third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp
@@ -111,7 +111,7 @@ void HTMLSummaryElement::defaultEventHandler(Event* event)
}
if (event->isKeyboardEvent()) {
- if (event->type() == EventTypeNames::keydown && toKeyboardEvent(event)->keyIdentifier() == "U+0020") {
+ if (event->type() == EventTypeNames::keydown && toKeyboardEvent(event)->key() == " ") {
setActive(true);
// No setDefaultHandled() - IE dispatches a keypress in this case.
return;
@@ -128,7 +128,7 @@ void HTMLSummaryElement::defaultEventHandler(Event* event)
return;
}
}
- if (event->type() == EventTypeNames::keyup && toKeyboardEvent(event)->keyIdentifier() == "U+0020") {
+ if (event->type() == EventTypeNames::keyup && toKeyboardEvent(event)->key() == " ") {
if (active())
dispatchSimulatedClick(event);
event->setDefaultHandled();
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLSelectElement.cpp ('k') | third_party/WebKit/Source/core/html/MediaDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698