From 25a2a0156e3d6279f57ff4ea0493433b679ea35b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tyrychtr?= Date: Mon, 23 Sep 2024 10:47:49 +0200 Subject: [PATCH] quick-slider: Do not allow focusing the icon when it's not reactive This hides a disabled unlabeled button from the focus order in the display brightness status indicator, and may be others. Part-of: --- js/ui/quickSettings.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/quickSettings.js b/js/ui/quickSettings.js index 1f10fa590..344732e3f 100644 --- a/js/ui/quickSettings.js +++ b/js/ui/quickSettings.js @@ -294,6 +294,9 @@ export const QuickSlider = GObject.registerClass({ this.bind_property('icon-reactive', this._iconButton, 'reactive', GObject.BindingFlags.SYNC_CREATE); + this.bind_property('icon-reactive', + this._iconButton, 'can-focus', + GObject.BindingFlags.SYNC_CREATE); this.bind_property('icon-label', this._iconButton, 'accessible-name', GObject.BindingFlags.SYNC_CREATE);