| Index: Source/core/html/HTMLButtonElement.cpp
|
| diff --git a/Source/core/html/HTMLButtonElement.cpp b/Source/core/html/HTMLButtonElement.cpp
|
| index 855af6438c4991db8b5910ca96126744a58eec95..cc581d2bf6fe27f46fde664b52f20817b9bb6c49 100644
|
| --- a/Source/core/html/HTMLButtonElement.cpp
|
| +++ b/Source/core/html/HTMLButtonElement.cpp
|
| @@ -125,10 +125,13 @@ void HTMLButtonElement::defaultEventHandler(Event* event)
|
| }
|
|
|
| if (event->isKeyboardEvent()) {
|
| - if (event->type() == eventNames().keydownEvent && static_cast<KeyboardEvent*>(event)->keyIdentifier() == "U+0020") {
|
| - setActive(true, true);
|
| - // No setDefaultHandled() - IE dispatches a keypress in this case.
|
| - return;
|
| + if (event->type() == eventNames().keydownEvent) {
|
| + willHandleKeyDownEvent();
|
| + if (static_cast<KeyboardEvent*>(event)->keyIdentifier() == "U+0020") {
|
| + setActive(true, true);
|
| + // No setDefaultHandled() - IE dispatches a keypress in this case.
|
| + return;
|
| + }
|
| }
|
| if (event->type() == eventNames().keypressEvent) {
|
| switch (static_cast<KeyboardEvent*>(event)->charCode()) {
|
|
|