macos: forward key events to the app when no windows exist

This commit is contained in:
Mitchell Hashimoto
2024-10-05 10:02:28 -10:00
parent 6fdfa9d491
commit f9e6d6efa6
3 changed files with 54 additions and 4 deletions

View File

@@ -294,9 +294,6 @@ pub fn keyEvent(
.leaf => |leaf| leaf,
};
// We only care about global keybinds
if (!leaf.flags.global) return false;
// Perform the action
self.performAllAction(rt_app, leaf.action) catch |err| {
log.warn("error performing global keybind action action={s} err={}", .{