1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:37:34 +00:00

Calculator: Allow system shortcuts

Before the key events for shortcuts such as ALT-F4 did not work as the
widget was swallowing up the shortcut. This changes ignores the event
if nothing else matched
This commit is contained in:
Hugh Davenport 2024-01-04 16:57:08 +13:00 committed by Sam Atkins
parent 340936ad09
commit 91cdda7763

View file

@ -184,6 +184,8 @@ void CalculatorWidget::keydown_event(GUI::KeyEvent& event)
m_divide_button->click();
else if (event.code_point() == '%')
m_percent_button->click();
else
event.ignore();
update_display();
}