Add support for disabling prefix key handling

To disable prefix key input handing simply set prefix-ctrl-key to
'none'.

Based on original patch from Sebastian Krahmer.
This commit is contained in:
Martin Lund 2024-02-19 16:46:20 +01:00
parent 6c520090c6
commit 593f9495f4
5 changed files with 11 additions and 5 deletions

View file

@ -259,7 +259,11 @@ static int data_handler(void *user, const char *section, const char *name,
}
else if (!strcmp(name, "prefix-ctrl-key"))
{
if (ctrl_key_code(value[0]) > 0)
if (!strcmp(value, "none"))
{
option.prefix_enabled = false;
}
else if (ctrl_key_code(value[0]) > 0)
{
option.prefix_code = ctrl_key_code(value[0]);
option.prefix_key = value[0];