mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-24 01:14:31 +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:
committed by
Sam Atkins
parent
340936ad09
commit
91cdda7763
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user