mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 08:50:37 +00:00
LibGUI: Forward GlyphMapWidget Key_Tab events
Allows focus to be passed using the keyboard.
This commit is contained in:
parent
61d214eab1
commit
8d3f60c7ef
Notes:
sideshowbarker
2024-07-17 05:00:08 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/8d3f60c7ef Pull-request: https://github.com/SerenityOS/serenity/pull/16566
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue