1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

LibGUI: Don't search ComboBox Windows when holding a mod key

This commit is contained in:
thankyouverycool 2022-11-17 09:27:08 -05:00 committed by Andreas Kling
parent 5c923977b7
commit 4ba20f08c7

View file

@ -94,7 +94,7 @@ ComboBox::ComboBox()
m_editor->on_keypress = [this](KeyEvent& event) { m_editor->on_keypress = [this](KeyEvent& event) {
if (!m_only_allow_values_from_model) if (!m_only_allow_values_from_model)
return; return;
if (!m_list_window->is_visible() && event.key() <= Key_Z && event.key() >= Key_A) { if (!m_list_window->is_visible() && event.key() <= Key_Z && event.key() >= Key_A && event.modifiers() == Mod_None) {
open(); open();
m_list_window->event(event); m_list_window->event(event);
} }