mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-16 05:49:57 -05:00
Shift+Del to delete item in clipboard history
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user