macOS: Add native keyboard shortcut for unicode input

Fixes #3407
This commit is contained in:
Kovid Goyal 2021-03-19 14:44:38 +05:30
parent fae99a24bf
commit 9e476127d3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 1 deletions

View File

@ -214,7 +214,7 @@ Decrease font size :sc:`decrease_font_size` (also :kbd:`⌘+-`
Restore font size :sc:`reset_font_size` (also :kbd:`⌘+0` on macOS) Restore font size :sc:`reset_font_size` (also :kbd:`⌘+0` on macOS)
Toggle fullscreen :sc:`toggle_fullscreen` (also :kbd:`^+⌘+f` on macOS) Toggle fullscreen :sc:`toggle_fullscreen` (also :kbd:`^+⌘+f` on macOS)
Toggle maximized :sc:`toggle_maximized` Toggle maximized :sc:`toggle_maximized`
Input unicode character :sc:`input_unicode_character` Input unicode character :sc:`input_unicode_character` (also :kbd:`^+⌘+space` on macOS)
Click URL using the keyboard :sc:`open_url` Click URL using the keyboard :sc:`open_url`
Reset the terminal :sc:`reset_terminal` Reset the terminal :sc:`reset_terminal`
Pass current selection to program :sc:`pass_selection_to_program` Pass current selection to program :sc:`pass_selection_to_program`

View File

@ -1575,6 +1575,8 @@ g('shortcuts.misc') # {{{
k('toggle_fullscreen', 'kitty_mod+f11', 'toggle_fullscreen', _('Toggle fullscreen')) k('toggle_fullscreen', 'kitty_mod+f11', 'toggle_fullscreen', _('Toggle fullscreen'))
k('toggle_maximized', 'kitty_mod+f10', 'toggle_maximized', _('Toggle maximized')) k('toggle_maximized', 'kitty_mod+f10', 'toggle_maximized', _('Toggle maximized'))
k('input_unicode_character', 'kitty_mod+u', 'kitten unicode_input', _('Unicode input')) k('input_unicode_character', 'kitty_mod+u', 'kitten unicode_input', _('Unicode input'))
if is_macos:
k('input_unicode_character', 'cmd+ctrl+space', 'kitten unicode_input', _('Unicode input'), add_to_docs=False)
k('edit_config_file', 'kitty_mod+f2', 'edit_config_file', _('Edit config file')) k('edit_config_file', 'kitty_mod+f2', 'edit_config_file', _('Edit config file'))
if is_macos: if is_macos:
k('edit_config_file', 'cmd+,', 'edit_config_file', _('Edit config file'), add_to_docs=False) k('edit_config_file', 'cmd+,', 'edit_config_file', _('Edit config file'), add_to_docs=False)