LibGUI: Forward GlyphMapWidget Key_Tab events

Allows focus to be passed using the keyboard.
This commit is contained in:
thankyouverycool 2022-12-15 07:25:28 -05:00 committed by Andreas Kling
parent 61d214eab1
commit 8d3f60c7ef
Notes: sideshowbarker 2024-07-17 05:00:08 +09:00

View file

@ -259,6 +259,11 @@ void GlyphMapWidget::doubleclick_event(MouseEvent& event)
void GlyphMapWidget::keydown_event(KeyEvent& event)
{
if (event.key() == KeyCode::Key_Tab) {
AbstractScrollableWidget::keydown_event(event);
return;
}
int range_offset = m_active_range.first;
if (!event.ctrl() && !event.shift() && event.key() != KeyCode::Key_Delete) {