mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:27:35 +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:
parent
340936ad09
commit
91cdda7763
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue