mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-22 11:05:22 -04:00
Enhance/clipboard history interactions (#2668)
* feat(clipboard): add entry context menu * feat(clipboard): add click to paste option * feat(clipboard): add optional copy and paste action buttons * fix(clipboard): default selection and esc behavior * fix(clipboard): prevent clear and filter overlap * Update to remove dead kb nav & add escape action on context menu --------- Co-authored-by: purian23 <purian23@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ QtObject {
|
||||
|
||||
function reset() {
|
||||
ClipboardService.selectedIndex = 0;
|
||||
ClipboardService.keyboardNavigationActive = false;
|
||||
ClipboardService.keyboardNavigationActive = true;
|
||||
modal.showKeyboardHints = false;
|
||||
}
|
||||
|
||||
@@ -89,13 +89,16 @@ QtObject {
|
||||
return;
|
||||
}
|
||||
|
||||
if (modal.contextMenuActive) {
|
||||
if (event.key === Qt.Key_Escape)
|
||||
modal.closeContextMenu();
|
||||
event.accepted = true;
|
||||
return;
|
||||
}
|
||||
|
||||
switch (event.key) {
|
||||
case Qt.Key_Escape:
|
||||
if (ClipboardService.keyboardNavigationActive) {
|
||||
ClipboardService.keyboardNavigationActive = false;
|
||||
} else {
|
||||
modal.hide();
|
||||
}
|
||||
modal.hide();
|
||||
event.accepted = true;
|
||||
return;
|
||||
case Qt.Key_Down:
|
||||
|
||||
Reference in New Issue
Block a user