1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

^ key couldn't be used with /BIND

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2796 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-05-15 23:20:19 +00:00 committed by cras
parent e8c14fea6d
commit ee80e7601a

View File

@ -162,6 +162,12 @@ void handle_key(unichar key)
str[utf16_char_to_utf8(key, str)] = '\0';
}
if (strcmp(str, "^") == 0) {
/* change it as ^^ */
str[1] = '^';
str[2] = '\0';
}
if (escape_next_key || !key_pressed(keyboard, str)) {
/* key wasn't used for anything, print it */
escape_next_key = FALSE;