mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
cefclient: Disable alert on space bar press (see issue #3184)
This will be reverted after issue #3184 is resolved.
This commit is contained in:
@@ -562,6 +562,7 @@ bool ClientHandler::OnPreKeyEvent(CefRefPtr<CefBrowser> browser,
|
|||||||
bool* is_keyboard_shortcut) {
|
bool* is_keyboard_shortcut) {
|
||||||
CEF_REQUIRE_UI_THREAD();
|
CEF_REQUIRE_UI_THREAD();
|
||||||
|
|
||||||
|
/*
|
||||||
if (!event.focus_on_editable_field && event.windows_key_code == 0x20) {
|
if (!event.focus_on_editable_field && event.windows_key_code == 0x20) {
|
||||||
// Special handling for the space character when an input element does not
|
// Special handling for the space character when an input element does not
|
||||||
// have focus. Handling the event in OnPreKeyEvent() keeps the event from
|
// 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!");
|
test_runner::Alert(browser, "You pressed the space bar!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user