mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-14 12:11:12 +03:00
macOS: Fix a regression in the previous release that broke overriding keyboard shortcuts for actions present in the global menu bar
Fixes #7016
This commit is contained in:
parent
0bd50abd77
commit
89c3b4f9e2
@ -43,6 +43,11 @@ The :doc:`ssh kitten <kittens/ssh>` is redesigned with powerful new features:
|
||||
Detailed list of changes
|
||||
-------------------------------------
|
||||
|
||||
0.32.1 [future]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
- macOS: Fix a regression in the previous release that broke overriding keyboard shortcuts for actions present in the global menu bar (:iss:`7016`)
|
||||
|
||||
0.32.0 [2024-01-19]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
@ -219,11 +219,11 @@ def set_cocoa_global_shortcuts(opts: Options) -> Dict[str, SingleKey]:
|
||||
if is_macos:
|
||||
from collections import defaultdict
|
||||
func_map = defaultdict(list)
|
||||
for k, v in opts.keyboard_modes[''].keymap.items():
|
||||
for kd in v:
|
||||
if kd.is_suitable_for_global_shortcut:
|
||||
parts = tuple(kd.definition.split())
|
||||
func_map[parts].append(k)
|
||||
for single_key, v in opts.keyboard_modes[''].keymap.items():
|
||||
kd = v[-1] # the last definition is the active one
|
||||
if kd.is_suitable_for_global_shortcut:
|
||||
parts = tuple(kd.definition.split())
|
||||
func_map[parts].append(single_key)
|
||||
|
||||
for ac in ('new_os_window', 'close_os_window', 'close_tab', 'edit_config_file', 'previous_tab',
|
||||
'next_tab', 'new_tab', 'new_window', 'close_window', 'toggle_macos_secure_keyboard_entry', 'toggle_fullscreen',
|
||||
|
Loading…
Reference in New Issue
Block a user