Fix double click on SidePanel to close

NPanel: remove WlrLayershell.keyboardFocus.OnDemand, only add it to
specific panels.
This commit is contained in:
Ly-sec 2025-09-01 23:57:51 +02:00
parent 9a4317739b
commit 65794b52ec
4 changed files with 13 additions and 1 deletions

View file

@ -28,6 +28,9 @@ NPanel {
panelAnchorBottom: launcherPosition.startsWith("bottom_")
panelAnchorTop: launcherPosition.startsWith("top_")
// Enable keyboard focus for launcher (needed for search)
panelKeyboardFocus: true
// Background opacity following bar's approach
panelBackgroundColor: Qt.rgba(Color.mSurface.r, Color.mSurface.g, Color.mSurface.b,
Settings.data.appLauncher.backgroundOpacity)

View file

@ -24,6 +24,9 @@ NPanel {
panelAnchorHorizontalCenter: true
panelAnchorVerticalCenter: true
// Enable keyboard focus for settings panel
panelKeyboardFocus: true
// Tabs enumeration, order is NOT relevant
enum Tab {
About,

View file

@ -14,6 +14,9 @@ NPanel {
panelHeight: 500 * scaling
panelAnchorRight: true
// Enable keyboard focus for WiFi panel (needed for password input)
panelKeyboardFocus: true
property string passwordPromptSsid: ""
property string passwordInput: ""
property bool showPasswordPrompt: false