Index: third_party/WebKit/Source/core/html/MediaDocument.cpp |
diff --git a/third_party/WebKit/Source/core/html/MediaDocument.cpp b/third_party/WebKit/Source/core/html/MediaDocument.cpp |
index eec9b699e238c33de79d770fc4f1ffe5046d7e09..eb35d3a9ecd41e91ddf168d3c7f6a074a7b5509a 100644 |
--- a/third_party/WebKit/Source/core/html/MediaDocument.cpp |
+++ b/third_party/WebKit/Source/core/html/MediaDocument.cpp |
@@ -256,7 +256,7 @@ void MediaDocument::defaultEventHandler(Event* event) |
return; |
KeyboardEvent* keyboardEvent = toKeyboardEvent(event); |
- if (keyboardEvent->keyIdentifier() == "U+0020" || keyboardEvent->keyCode() == VKEY_MEDIA_PLAY_PAUSE) { |
+ if (keyboardEvent->key() == " " || keyboardEvent->keyCode() == VKEY_MEDIA_PLAY_PAUSE) { |
// space or media key (play/pause) |
video->togglePlayState(); |
event->setDefaultHandled(); |