mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
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:
parent
6c520090c6
commit
593f9495f4
5 changed files with 11 additions and 5 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue