* editkeys.c: When typing literal characters after C-q, allow

the alphabetic characters to input ASCII control characters.
This commit is contained in:
Roland Illig 2005-07-18 09:32:19 +00:00
parent 6d3226c4e7
commit fb221cb8b0
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-07-18 Roland Illig <roland.illig@gmx.de>
* editkeys.c: When typing literal characters after C-q, allow
the alphabetic characters to input ASCII control characters.
2005-07-06 Roland Illig <roland.illig@gmx.de> 2005-07-06 Roland Illig <roland.illig@gmx.de>
* edit.h: Added missing #include <stdio.h>. * edit.h: Added missing #include <stdio.h>.

View File

@ -228,9 +228,9 @@ edit_translate_key (WEdit *edit, long x_key, int *cmd, int *ch)
#endif #endif
if (x_key == XCTRL ('q')) { if (x_key == XCTRL ('q')) {
char_for_insertion = char_for_insertion = ascii_alpha_to_cntrl (
edit_raw_key_query (_(" Insert Literal "), edit_raw_key_query (_(" Insert Literal "),
_(" Press any key: "), 0); _(" Press any key: "), 0));
goto fin; goto fin;
} }
if (x_key == XCTRL ('a') if (x_key == XCTRL ('a')