Cocoa grabs control+function key presses so use dedicated cmd based shortcuts for those on macOS

This commit is contained in:
Kovid Goyal
2021-06-13 18:20:14 +05:30
parent b9d52dfaf7
commit c7b91e5f19
4 changed files with 16 additions and 3 deletions
+11
View File
@@ -3329,6 +3329,11 @@ the new conf settings *replace* the old ones.
'''
)
map('Reload kitty.conf',
'reload_config_file cmd+control+, load_config_file',
only='macos'
)
map('Debug kitty configuration',
'debug_config kitty_mod+f6 debug_config',
long_text='''
@@ -3337,6 +3342,12 @@ its host environment. Useful for debugging issues.
'''
)
map('Debug kitty configuration',
'debug_config cmd+option+, debug_config',
only='macos'
)
map('Send arbitrary text on key presses',
'send_text ctrl+shift+alt+h send_text all Hello World',
add_to_default=False,
+2
View File
@@ -848,6 +848,8 @@ if is_macos:
defaults.map.append(KeyDefinition(False, KeyAction('kitten', ('unicode_input',)), 12, False, 32, ()))
defaults.map.append(KeyDefinition(False, KeyAction('edit_config_file'), 8, False, 44, ()))
defaults.map.append(KeyDefinition(False, KeyAction('clear_terminal', ('reset', True)), 10, False, 114, ()))
defaults.map.append(KeyDefinition(False, KeyAction('load_config_file'), 12, False, 44, ()))
defaults.map.append(KeyDefinition(False, KeyAction('debug_config'), 10, False, 44, ()))
defaults.mouse_map = [
# click_url_or_select
MouseMapping(0, 0, -2, False, KeyAction('mouse_click_url_or_select')),