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
Notes: sideshowbarker 2024-07-17 04:18:21 +09:00

View file

@ -94,7 +94,7 @@ ComboBox::ComboBox()
m_editor->on_keypress = [this](KeyEvent& event) {
if (!m_only_allow_values_from_model)
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();
m_list_window->event(event);
}