diff --git a/Userland/Libraries/LibGUI/ComboBox.cpp b/Userland/Libraries/LibGUI/ComboBox.cpp index 3ce822676b..b5aca12057 100644 --- a/Userland/Libraries/LibGUI/ComboBox.cpp +++ b/Userland/Libraries/LibGUI/ComboBox.cpp @@ -90,6 +90,8 @@ ComboBox::ComboBox() m_open_button->click(); }; 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) { open(); m_list_window->event(event);