mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 07:52:50 -05:00
clipboard: fix focus warning on exit
This commit is contained in:
@@ -131,7 +131,7 @@ PanelWindow {
|
|||||||
visible: isVisible
|
visible: isVisible
|
||||||
WlrLayershell.layer: WlrLayershell.Overlay
|
WlrLayershell.layer: WlrLayershell.Overlay
|
||||||
WlrLayershell.exclusiveZone: -1
|
WlrLayershell.exclusiveZone: -1
|
||||||
WlrLayershell.keyboardFocus: isVisible ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None
|
WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
top: true
|
top: true
|
||||||
@@ -274,6 +274,7 @@ PanelWindow {
|
|||||||
color: activeTheme.surfaceText
|
color: activeTheme.surfaceText
|
||||||
verticalAlignment: TextInput.AlignVCenter
|
verticalAlignment: TextInput.AlignVCenter
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
|
enabled: clipboardHistory.isVisible
|
||||||
onTextChanged: updateFilteredModel()
|
onTextChanged: updateFilteredModel()
|
||||||
Keys.onPressed: (event) => {
|
Keys.onPressed: (event) => {
|
||||||
if (event.key === Qt.Key_Escape)
|
if (event.key === Qt.Key_Escape)
|
||||||
@@ -347,6 +348,8 @@ PanelWindow {
|
|||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.NoButton
|
acceptedButtons: Qt.NoButton
|
||||||
|
propagateComposedEvents: true
|
||||||
|
z: -1
|
||||||
onWheel: (wheel) => {
|
onWheel: (wheel) => {
|
||||||
var delta = wheel.angleDelta.y;
|
var delta = wheel.angleDelta.y;
|
||||||
var steps = delta / 120; // Standard wheel step
|
var steps = delta / 120; // Standard wheel step
|
||||||
|
|||||||
Reference in New Issue
Block a user