mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-12 16:52:10 -04:00
keybinds: fix escape in keybinds modal
This commit is contained in:
@@ -91,7 +91,12 @@ DankModal {
|
|||||||
id: searchField
|
id: searchField
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
leftIconName: "search"
|
leftIconName: "search"
|
||||||
|
keyForwardTargets: [root.modalFocusScope]
|
||||||
onTextEdited: searchDebounce.restart()
|
onTextEdited: searchDebounce.restart()
|
||||||
|
Keys.onEscapePressed: event => {
|
||||||
|
root.close();
|
||||||
|
event.accepted = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user