From 1cd39d6a9500aa1ed080fb0ba05386f20de00e75 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 13 Sep 2017 09:52:40 +0200 Subject: Avoid losing focus when clicking toolbuttons --- components/kube/contents/ui/ComposerView.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'components') diff --git a/components/kube/contents/ui/ComposerView.qml b/components/kube/contents/ui/ComposerView.qml index fcc9c849..f82b4269 100644 --- a/components/kube/contents/ui/ComposerView.qml +++ b/components/kube/contents/ui/ComposerView.qml @@ -274,10 +274,10 @@ Kube.View { Kube.Button { id: html - //FIXME get the html composer to do something useful - visible: false text: checked ? qsTr("plain") : qsTr("html") checkable: true + focusPolicy: Qt.TabFocus + focus: false } Row { @@ -290,6 +290,7 @@ Kube.View { checked: document.bold onClicked: document.bold = !document.bold focusPolicy: Qt.TabFocus + focus: false } Kube.IconButton { iconName: Kube.Icons.italic @@ -297,6 +298,7 @@ Kube.View { checked: document.italic onClicked: document.italic = !document.italic focusPolicy: Qt.TabFocus + focus: false } Kube.IconButton { iconName: Kube.Icons.underline @@ -304,6 +306,7 @@ Kube.View { checked: document.underline onClicked: document.underline = !document.underline focusPolicy: Qt.TabFocus + focus: false } } -- cgit v1.2.3