From 0fa4736470a39b6abbb0e70d3eb5b7636fb61549 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 24 Oct 2026 09:40:20 +0200 Subject: window-switcher: Del closes the selected window The keyboard could pick a window but only the mouse could close one, on the hovered card's x. Del closes the selection and, like the x, leaves the overlay open for the next close; the card goes when Hyprland reports the window gone, and the next arrow press picks the top-left card again. The README also still named the IPC show(), renamed open() in c889501. Co-Authored-By: Claude Opus 5.5 --- window-switcher/Switcher.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'window-switcher/Switcher.qml') diff --git a/window-switcher/Switcher.qml b/window-switcher/Switcher.qml index 1eebfa8..3bc6a86 100644 --- a/window-switcher/Switcher.qml +++ b/window-switcher/Switcher.qml @@ -87,6 +87,8 @@ Scope { Keys.onEscapePressed: root.close() Keys.onReturnPressed: if (scatter.selected) root.focusAfterClose(scatter.selected) Keys.onEnterPressed: if (scatter.selected) root.focusAfterClose(scatter.selected) + // Like the card's x: the overlay stays open for the next one. + Keys.onDeletePressed: if (scatter.selected) Windows.closeWindow(scatter.selected) Keys.onLeftPressed: scatter.move(-1, 0) Keys.onRightPressed: scatter.move(1, 0) Keys.onUpPressed: scatter.move(0, -1) -- cgit v1.2.3