macOS: add Cmd+J "Jump to Selection" menu item and default binding

This matches other built-in macOS apps like Terminal, Notes, Safari. We
already had the binding, just needed to create the menu.

https://ampcode.com/threads/T-019b956a-f4e6-71b4-87fa-4162258d33ff
This commit is contained in:
Mitchell Hashimoto
2026-01-06 14:28:54 -08:00
parent 09c7240fb2
commit 7d0157e69a
5 changed files with 26 additions and 0 deletions

View File

@@ -6446,6 +6446,12 @@ pub const Keybinds = struct {
.{ .key = .{ .physical = .page_down }, .mods = .{ .super = true } },
.{ .scroll_page_down = {} },
);
try self.set.putFlags(
alloc,
.{ .key = .{ .unicode = 'j' }, .mods = .{ .super = true } },
.{ .scroll_to_selection = {} },
.{ .performable = true },
);
// Semantic prompts
try self.set.put(