Skip to content

Commit

Permalink
macOS: Add native keyboard shortcut for unicode input
Browse files Browse the repository at this point in the history
Fixes #3407
  • Loading branch information
kovidgoyal committed Mar 19, 2021
1 parent fae99a2 commit 9e47612
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.rst
Expand Up @@ -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)
Toggle fullscreen :sc:`toggle_fullscreen` (also :kbd:`^++f` on macOS)
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`
Reset the terminal :sc:`reset_terminal`
Pass current selection to program :sc:`pass_selection_to_program`
Expand Down
2 changes: 2 additions & 0 deletions kitty/config_data.py
Expand Up @@ -1575,6 +1575,8 @@ def macos_option_as_alt(x: str) -> int:
k('toggle_fullscreen', 'kitty_mod+f11', 'toggle_fullscreen', _('Toggle fullscreen'))
k('toggle_maximized', 'kitty_mod+f10', 'toggle_maximized', _('Toggle maximized'))
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'))
if is_macos:
k('edit_config_file', 'cmd+,', 'edit_config_file', _('Edit config file'), add_to_docs=False)
Expand Down

0 comments on commit 9e47612

Please sign in to comment.