From 963479d559997d64633fdd5ceac595228c2509ae Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Sun, 15 Feb 2015 16:31:28 +0100 Subject: ComboBox: Fix opening popup when pressing space when editable Task-number: QTBUG-38612 Change-Id: I595c0b18f4cb88dc2948f869201cb944afc06740 Reviewed-by: J-P Nurmi --- src/controls/ComboBox.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/controls/ComboBox.qml b/src/controls/ComboBox.qml index 5ec0e1f8..4dc8ca39 100644 --- a/src/controls/ComboBox.qml +++ b/src/controls/ComboBox.qml @@ -653,7 +653,10 @@ Control { // The key bindings below will only be in use when popup is // not visible. Otherwise, native popup key handling will take place: Keys.onSpacePressed: { - popup.toggleShow() + if (!editable) + popup.toggleShow() + else + event.accepted = false } Keys.onUpPressed: __selectPrevItem() -- cgit v1.2.1