summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-05 00:43:46 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-05 00:43:46 +0200
commit3e7dd0fb20dc70f80e65a61dabfb7b7f7513b501 (patch)
treec49da1291cad6349a5cd607780671cdf58e97e87
parent4361101206ff10f285715af68adaf2b24ec2f5f0 (diff)
downloadkube-3e7dd0fb20dc70f80e65a61dabfb7b7f7513b501.tar.gz
kube-3e7dd0fb20dc70f80e65a61dabfb7b7f7513b501.zip
Force keyboard focus
otherwise the element won't highlight as it should.
-rw-r--r--views/composer/qml/AddresseeListEditor.qml4
-rw-r--r--views/composer/qml/View.qml2
2 files changed, 3 insertions, 3 deletions
diff --git a/views/composer/qml/AddresseeListEditor.qml b/views/composer/qml/AddresseeListEditor.qml
index 2110e3d9..30571d8b 100644
--- a/views/composer/qml/AddresseeListEditor.qml
+++ b/views/composer/qml/AddresseeListEditor.qml
@@ -127,12 +127,12 @@ FocusScope {
127 root.controller.add({name: text}); 127 root.controller.add({name: text});
128 clear() 128 clear()
129 visible = false 129 visible = false
130 button.forceActiveFocus() 130 button.forceActiveFocus(Qt.TabFocusReason)
131 } 131 }
132 onAborted: { 132 onAborted: {
133 clear() 133 clear()
134 visible = false 134 visible = false
135 button.forceActiveFocus() 135 button.forceActiveFocus(Qt.TabFocusReason)
136 } 136 }
137 } 137 }
138 } 138 }
diff --git a/views/composer/qml/View.qml b/views/composer/qml/View.qml
index e7f7a6d1..f980bfd6 100644
--- a/views/composer/qml/View.qml
+++ b/views/composer/qml/View.qml
@@ -382,7 +382,7 @@ Kube.View {
382 } 382 }
383 383
384 onActiveFocusChanged: closeFirstSplitIfNecessary() 384 onActiveFocusChanged: closeFirstSplitIfNecessary()
385 Keys.onEscapePressed: recipients.forceActiveFocus() 385 Keys.onEscapePressed: recipients.forceActiveFocus(Qt.TabFocusReason)
386 onTextChanged: { 386 onTextChanged: {
387 composerController.body = text; 387 composerController.body = text;
388 } 388 }