macOS: add menu items for new_window and close_window

This commit is contained in:
Luflosi
2021-05-23 20:28:50 +02:00
parent f178dff4e0
commit 4a67af9b90
4 changed files with 13 additions and 3 deletions

View File

@@ -135,7 +135,8 @@ def set_x11_window_icon() -> None:
def _run_app(opts: OptionsStub, args: CLIOptions, bad_lines: Sequence[BadLine] = ()) -> None:
global_shortcuts: Dict[str, SingleKey] = {}
if is_macos:
for ac in ('new_os_window', 'close_os_window', 'close_tab', 'edit_config_file', 'previous_tab', 'next_tab', 'new_tab'):
for ac in ('new_os_window', 'close_os_window', 'close_tab', 'edit_config_file', 'previous_tab',
'next_tab', 'new_tab', 'new_window', 'close_window'):
val = get_macos_shortcut_for(opts, ac)
if val is not None:
global_shortcuts[ac] = val