Commit 5c48f4a3 authored by Jan Blackquill's avatar Jan Blackquill 🌈 Committed by Nate Graham
Browse files

lockscreen: make MediaControls tab-focus only

Users are unlikely to want focus diverted away from the
password field when interacting with the media controls;
setting the focus policy to TabFocus makes sure that
mouse usage doesn't divert focus while keeping keyboard
navigation intact.

BUG: 437390
FIXED-IN: 5.22
parent 334d8f02
......@@ -134,6 +134,7 @@ Item {
}
PlasmaComponents3.ToolButton {
focusPolicy: Qt.TabFocus
enabled: mpris2Source.canGoBack
Layout.preferredHeight: PlasmaCore.Units.gridUnit*2
Layout.preferredWidth: Layout.preferredHeight
......@@ -147,6 +148,7 @@ Item {
}
PlasmaComponents3.ToolButton {
focusPolicy: Qt.TabFocus
Layout.fillHeight: true
Layout.preferredWidth: height // make this button bigger
icon.name: mpris2Source.playing ? "media-playback-pause" : "media-playback-start"
......@@ -158,6 +160,7 @@ Item {
}
PlasmaComponents3.ToolButton {
focusPolicy: Qt.TabFocus
enabled: mpris2Source.canGoNext
Layout.preferredHeight: PlasmaCore.Units.gridUnit*2
Layout.preferredWidth: Layout.preferredHeight
......
Supports Markdown
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