Commit 343967d7 authored by Nate Graham's avatar Nate Graham
Browse files

[applet/notes] Don't focus buttons on click

Otherwise the text field loses focus and typing causes KRunner to
intercept the keystrokes. Instead, only allow the buttons to gain focus
when manually focused using the tab key.

BUG: 437828
FIXED-IN: 5.22.1


(cherry picked from commit 5a78f3cd)
parent 487b974e
......@@ -378,6 +378,7 @@ PlasmaCore.SvgItem {
visible: fontButtons.showFormatButtons
QQC2.ToolButton {
focusPolicy: Qt.TabFocus
icon.name: "format-text-bold"
icon.color: textIconColor
checked: documentHandler.bold
......@@ -389,6 +390,7 @@ PlasmaCore.SvgItem {
}
}
QQC2.ToolButton {
focusPolicy: Qt.TabFocus
icon.name: "format-text-italic"
icon.color: textIconColor
checked: documentHandler.italic
......@@ -400,6 +402,7 @@ PlasmaCore.SvgItem {
}
}
QQC2.ToolButton {
focusPolicy: Qt.TabFocus
icon.name: "format-text-underline"
icon.color: textIconColor
checked: documentHandler.underline
......@@ -411,6 +414,7 @@ PlasmaCore.SvgItem {
}
}
QQC2.ToolButton {
focusPolicy: Qt.TabFocus
icon.name: "format-text-strikethrough"
icon.color: textIconColor
checked: documentHandler.strikeOut
......@@ -430,6 +434,7 @@ PlasmaCore.SvgItem {
QQC2.ToolButton {
id: settingsButton
focusPolicy: Qt.TabFocus
icon.name: "configure"
icon.color: textIconColor
onClicked: plasmoid.action("configure").trigger()
......@@ -442,6 +447,7 @@ PlasmaCore.SvgItem {
QQC2.ToolButton {
id: removeButton
focusPolicy: Qt.TabFocus
icon.name: "edit-delete"
icon.color: textIconColor
onClicked: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment