macOS: Add entries to global menu bar for creating and changing tabs

This commit is contained in:
Kovid Goyal
2021-02-25 11:54:53 +05:30
parent 78854d4a10
commit 81f144df15
5 changed files with 45 additions and 34 deletions

View File

@@ -130,7 +130,7 @@ 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'):
for ac in ('new_os_window', 'close_os_window', 'close_tab', 'edit_config_file', 'previous_tab', 'next_tab', 'new_tab'):
val = get_macos_shortcut_for(opts, ac)
if val is not None:
global_shortcuts[ac] = val