1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:08:12 +00:00

LibGUI: Don't start AbstractView type-ahead search with tab key

This was preventing views from relinquishing focus via the keyboard.

Fixes #3862.
This commit is contained in:
Andreas Kling 2020-10-28 21:25:01 +01:00
parent 80e12999c4
commit 1f789a07b1

View file

@ -563,7 +563,7 @@ void AbstractView::keydown_event(KeyEvent& event)
event.accept(); event.accept();
return; return;
} }
} else if (!event.ctrl() && !event.alt() && event.code_point() != 0) { } else if (event.key() != KeyCode::Key_Tab && !event.ctrl() && !event.alt() && event.code_point() != 0) {
StringBuilder sb; StringBuilder sb;
sb.append(m_searching); sb.append(m_searching);
sb.append_code_point(event.code_point()); sb.append_code_point(event.code_point());