Fix double click on SidePanel to close
NPanel: remove WlrLayershell.keyboardFocus.OnDemand, only add it to specific panels.
This commit is contained in:
parent
9a4317739b
commit
65794b52ec
4 changed files with 13 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -40,6 +40,9 @@ Loader {
|
|||
property int buttonWidth: 0
|
||||
property int buttonHeight: 0
|
||||
|
||||
// Whether this panel should accept keyboard focus
|
||||
property bool panelKeyboardFocus: false
|
||||
|
||||
// Animation properties
|
||||
readonly property real originalScale: 0.7
|
||||
readonly property real originalOpacity: 0.0
|
||||
|
|
@ -148,7 +151,7 @@ Loader {
|
|||
|
||||
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
||||
WlrLayershell.namespace: "noctalia-panel"
|
||||
WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand
|
||||
WlrLayershell.keyboardFocus: root.panelKeyboardFocus ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
|
||||
|
||||
Behavior on color {
|
||||
ColorAnimation {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue