From 4d42a6c31abf893281f9f2a69ee8d2b10cebb894 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Fri, 14 Jan 2022 12:15:24 -0500 Subject: [PATCH] cefclient: Disable alert on space bar press (see issue #3184) This will be reverted after issue #3184 is resolved. --- tests/cefclient/browser/client_handler.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/cefclient/browser/client_handler.cc b/tests/cefclient/browser/client_handler.cc index 91e770536..80348b448 100644 --- a/tests/cefclient/browser/client_handler.cc +++ b/tests/cefclient/browser/client_handler.cc @@ -562,6 +562,7 @@ bool ClientHandler::OnPreKeyEvent(CefRefPtr browser, bool* is_keyboard_shortcut) { CEF_REQUIRE_UI_THREAD(); + /* if (!event.focus_on_editable_field && event.windows_key_code == 0x20) { // Special handling for the space character when an input element does not // have focus. Handling the event in OnPreKeyEvent() keeps the event from @@ -572,6 +573,7 @@ bool ClientHandler::OnPreKeyEvent(CefRefPtr browser, test_runner::Alert(browser, "You pressed the space bar!"); return true; } + */ return false; }