cefclient: Disable alert on space bar press (see issue #3184)

This will be reverted after issue #3184 is resolved.
This commit is contained in:
Marshall Greenblatt 2022-01-14 12:15:24 -05:00
parent 029cc67915
commit 9276dba712
1 changed files with 2 additions and 0 deletions

View File

@ -562,6 +562,7 @@ bool ClientHandler::OnPreKeyEvent(CefRefPtr<CefBrowser> 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<CefBrowser> browser,
test_runner::Alert(browser, "You pressed the space bar!");
return true;
}
*/
return false;
}