diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/forms/keyboard_clickable_input_type_view.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/html/forms/keyboard_clickable_input_type_view.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/forms/keyboard_clickable_input_type_view.cc b/chromium/third_party/blink/renderer/core/html/forms/keyboard_clickable_input_type_view.cc index ba8e4bb19f8..2392c425f74 100644 --- a/chromium/third_party/blink/renderer/core/html/forms/keyboard_clickable_input_type_view.cc +++ b/chromium/third_party/blink/renderer/core/html/forms/keyboard_clickable_input_type_view.cc @@ -31,6 +31,7 @@ #include "third_party/blink/renderer/core/html/forms/keyboard_clickable_input_type_view.h" +#include "third_party/blink/renderer/core/dom/events/simulated_click_options.h" #include "third_party/blink/renderer/core/events/keyboard_event.h" #include "third_party/blink/renderer/core/html/forms/html_input_element.h" @@ -67,10 +68,10 @@ void KeyboardClickableInputTypeView::HandleKeyupEvent(KeyboardEvent& event) { // FIXME: Could share this with BaseCheckableInputType and RangeInputType if we // had a common base class. -void KeyboardClickableInputTypeView::AccessKeyAction(bool send_mouse_events) { - InputTypeView::AccessKeyAction(send_mouse_events); - GetElement().DispatchSimulatedClick( - nullptr, send_mouse_events ? kSendMouseUpDownEvents : kSendNoEvents); +void KeyboardClickableInputTypeView::AccessKeyAction( + SimulatedClickCreationScope creation_scope) { + InputTypeView::AccessKeyAction(creation_scope); + GetElement().DispatchSimulatedClick(nullptr, creation_scope); } } // namespace blink |