mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
parent
8c7bce818d
commit
bc0146932e
1 changed files with 3 additions and 0 deletions
|
@ -113,6 +113,9 @@ void WindowServerConnection::window_left(i32 window_id)
|
||||||
|
|
||||||
static Action* action_for_key_event(Window& window, KeyEvent const& event)
|
static Action* action_for_key_event(Window& window, KeyEvent const& event)
|
||||||
{
|
{
|
||||||
|
if (event.key() == KeyCode::Key_Invalid)
|
||||||
|
return nullptr;
|
||||||
|
|
||||||
dbgln_if(KEYBOARD_SHORTCUTS_DEBUG, "Looking up action for {}", event.to_string());
|
dbgln_if(KEYBOARD_SHORTCUTS_DEBUG, "Looking up action for {}", event.to_string());
|
||||||
|
|
||||||
for (auto* widget = window.focused_widget(); widget; widget = widget->parent_widget()) {
|
for (auto* widget = window.focused_widget(); widget; widget = widget->parent_widget()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue