macOS: Add menu items to close the OS window and the current tab

Fixes #3246
This commit is contained in:
Kovid Goyal
2021-01-17 06:49:25 +05:30
parent 4c9bd368c6
commit aa63bf71cf
7 changed files with 80 additions and 39 deletions
+3 -3
View File
@@ -141,7 +141,7 @@ class Boss:
opts: Options,
args: CLIOptions,
cached_values: Dict[str, Any],
new_os_window_trigger: Optional[SingleKey]
global_shortcuts: Dict[str, SingleKey]
):
set_layout_options(opts)
self.clipboard_buffers: Dict[str, str] = {}
@@ -168,8 +168,8 @@ class Boss:
set_boss(self)
self.opts, self.args = opts, args
self.keymap = self.opts.keymap.copy()
if new_os_window_trigger is not None:
self.keymap.pop(new_os_window_trigger, None)
for sc in global_shortcuts.values():
self.keymap.pop(sc, None)
if is_macos:
from .fast_data_types import (
cocoa_set_notification_activated_callback