From 17a3b858a20d920c46c17535a91ae6b257367479 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 17 Aug 2012 15:43:21 +0200 Subject: [PATCH] don't close when clicking on empty spots --- .../plasmacomponents/platformcomponents/touch/Sheet.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/declarativeimports/plasmacomponents/platformcomponents/touch/Sheet.qml b/declarativeimports/plasmacomponents/platformcomponents/touch/Sheet.qml index a8a4f43e0..e4f096c51 100644 --- a/declarativeimports/plasmacomponents/platformcomponents/touch/Sheet.qml +++ b/declarativeimports/plasmacomponents/platformcomponents/touch/Sheet.qml @@ -197,13 +197,15 @@ Item { //state: "Hidden" - Item { + MouseArea { id: mainItem x: dialog.margins.left y: dialog.margins.top width: parent.width - dialog.margins.left - dialog.margins.right height: parent.height - dialog.margins.top - dialog.margins.bottom + onClicked: mouse.accepted = true + // Consume all key events that are not processed by children Keys.onPressed: event.accepted = true Keys.onReleased: event.accepted = true