@@ -292,6 +292,7 @@ extension ShortcutAction {
292292 ( . special( . space, control: true ) , String ( localized: " Show Completions " ) ) ,
293293 ( . special( . upArrow, option: true ) , String ( localized: " Move Line Up " ) ) ,
294294 ( . special( . downArrow, option: true ) , String ( localized: " Move Line Down " ) ) ,
295+ ( . character( " j " , command: true , control: true ) , String ( localized: " Jump to Definition " ) ) ,
295296 ( . special( . upArrow, shift: true , option: true ) , String ( localized: " Extend Selection to Previous Statement " ) ) ,
296297 ( . special( . downArrow, shift: true , option: true ) , String ( localized: " Extend Selection to Next Statement " ) )
297298 ]
@@ -314,13 +315,21 @@ extension ShortcutAction {
314315 ( . special( . rightArrow, option: true ) , String ( localized: " Move Word Right " ) )
315316 ]
316317
317- /// App-level shortcuts that are wired directly in the menu and are not
318- /// customizable: tab selection (Cmd+1 through Cmd+9) and editor zoom. These
319- /// fire regardless of focus, so a user binding would silently collide.
318+ /// Every key equivalent a menu builder hardcodes, and so every combo no `ShortcutAction`
319+ /// can be bound to. These fire regardless of focus, and AppKit blanks the loser when two
320+ /// menu items claim one combo, so a binding the recorder let through would silently kill
321+ /// the hardcoded command instead. An entry added to a menu builder belongs here too.
320322 static let reservedAppShortcuts : [ ( key: BoundKey , name: String ) ] = {
321323 var shortcuts : [ ( key: BoundKey , name: String ) ] = [
322324 ( . character( " = " , command: true ) , String ( localized: " Zoom In " ) ) ,
323- ( . character( " - " , command: true ) , String ( localized: " Zoom Out " ) )
325+ ( . character( " - " , command: true ) , String ( localized: " Zoom Out " ) ) ,
326+ ( . character( " , " , command: true ) , String ( localized: " Settings… " ) ) ,
327+ ( . character( " h " , command: true ) , String ( localized: " Hide TablePro " ) ) ,
328+ ( . character( " h " , command: true , option: true ) , String ( localized: " Hide Others " ) ) ,
329+ ( . character( " q " , command: true ) , String ( localized: " Quit TablePro " ) ) ,
330+ ( . character( " m " , command: true ) , String ( localized: " Minimize " ) ) ,
331+ ( . character( " t " , command: true , option: true ) , String ( localized: " Show Toolbar " ) ) ,
332+ ( . character( " f " , command: true , control: true ) , String ( localized: " Enter Full Screen " ) )
324333 ]
325334 for number in 1 ... 9 {
326335 shortcuts. append ( (
0 commit comments