From 7928fff6450c1d2332b3cbd3db3271bacc3bcf8d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 17 Feb 2020 17:52:35 +0530 Subject: [PATCH] Update list of GLFW keys in the doc to use kitty's forked GLFW --- kitty/config_data.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/kitty/config_data.py b/kitty/config_data.py index aea5bc914..d8d7b32e4 100644 --- a/kitty/config_data.py +++ b/kitty/config_data.py @@ -84,19 +84,21 @@ as color16 to color255.''') 'shortcuts': [ _('Keyboard shortcuts'), _('''\ -For a list of key names, see: :link:`GLFW keys -`. The name to use is the part -after the :code:`GLFW_KEY_` prefix. For a list of modifier names, see: +For a list of key names, see: :link:`the GLFW key macros +`. +The name to use is the part after the :code:`GLFW_KEY_` prefix. +For a list of modifier names, see: :link:`GLFW mods ` On Linux you can also use XKB key names to bind keys that are not supported by GLFW. See :link:`XKB keys ` for a list of key names. The name to use is the part after the :code:`XKB_KEY_` -prefix. Note that you should only use an XKB key name for keys that are not present -in the list of GLFW keys. +prefix. Note that you can only use an XKB key name for keys that are not known +as GLFW keys. -Finally, you can use raw system key codes to map keys. To see the system key code +Finally, you can use raw system key codes to map keys, again only for keys that are not +known as GLFW keys. To see the system key code for a key, start kitty with the :option:`kitty --debug-keyboard` option. Then kitty will output some debug text for every key event. In that text look for ``native_code`` the value of that becomes the key name in the shortcut. For example: