1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23:42:51 -05:00

clipboard: add shift+enter to paste from clipboard history modal

fixes #358
This commit is contained in:
bbedward
2025-12-12 15:29:10 -05:00
parent 0ff9fdb365
commit d46302588a
5 changed files with 68 additions and 6 deletions

View File

@@ -114,11 +114,21 @@ QtObject {
}
}
if (event.modifiers & Qt.ShiftModifier && event.key === Qt.Key_Delete) {
modal.clearAll();
modal.hide();
event.accepted = true;
return;
if (event.modifiers & Qt.ShiftModifier) {
switch (event.key) {
case Qt.Key_Delete:
modal.clearAll();
modal.hide();
event.accepted = true;
return;
case Qt.Key_Return:
case Qt.Key_Enter:
if (modal.keyboardNavigationActive) {
modal.pasteSelected();
event.accepted = true;
}
return;
}
}
if (modal.keyboardNavigationActive) {