Shift+Del to delete item in clipboard history

This commit is contained in:
André Zanghelini
2025-10-14 01:43:33 -03:00
parent 450a1493fe
commit c5bd1d6bc0
2 changed files with 8 additions and 2 deletions
@@ -96,7 +96,13 @@ RippleButton {
root.itemExecute()
}
Keys.onPressed: (event) => {
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {
if (event.key === Qt.Key_Delete && event.modifiers === Qt.ShiftModifier) {
const deleteAction = root.entry.actions.find(action => action.name == "Delete");
if (deleteAction) {
deleteAction.execute()
}
} else if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {
root.keyboardDown = true
root.clicked()
event.accepted = true;