Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat(domain): add hardcoded keybinding for closing the focused window

Lars Berger94210d05b188
diff --git a/LarsWM.Domain/Common/Services/KeybindingService.cs b/LarsWM.Domain/Common/Services/KeybindingService.cs
index 65a23269..2db81c58 100644
--- a/LarsWM.Domain/Common/Services/KeybindingService.cs
+++ b/LarsWM.Domain/Common/Services/KeybindingService.cs
@@ -93,6 +93,8 @@ namespace LarsWM.Domain.Common.Services
_bus.Invoke(new FocusWorkspaceCommand("8"));
if (pressedKey == Keys.D9)
_bus.Invoke(new FocusWorkspaceCommand("9"));
+ if (pressedKey == Keys.Q)
+ _bus.Invoke(new CloseFocusedWindowCommand());
if (pressedKey == Keys.A)
_bus.Invoke(new MoveFocusedWindowCommand(Direction.LEFT));
if (pressedKey == Keys.S)