mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
Modify escape of ^ key so it can be used as well as Ctrl+^
Fixes FS#721
This makes Ctrl+^ and ^ bindable again as different keys. We do this
by escaping single `^` as `^-`, which is not a valid control character
(unlike `^^`)
The original approach suggested in FS#721 is insufficient, it will
break bindings such as `meta-^` because Irssi is convinced that `^`
introduces a Control-key ("key combo") so it is waiting for what may
follow.
This commit is contained in:
parent
cb6266f212
commit
09f23d06b5
2 changed files with 11 additions and 5 deletions
|
|
@ -393,8 +393,8 @@ static void sig_gui_key_pressed(gpointer keyp)
|
|||
}
|
||||
|
||||
if (strcmp(str, "^") == 0) {
|
||||
/* change it as ^^ */
|
||||
str[1] = '^';
|
||||
/* change it as ^-, that is an invalid control char */
|
||||
str[1] = '-';
|
||||
str[2] = '\0';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue