mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 09:19:24 +03:00
* edit/edit_key_translator.c [HAVE_CHARSET]: Add charset
conversion support. From Walery Studennikov <hqsoftware@mail.ru>.
This commit is contained in:
parent
c645d780c7
commit
998bbab143
@ -1,5 +1,9 @@
|
|||||||
2001-06-05 Pavel Roskin <proski@gnu.org>
|
2001-06-05 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* edit/edit_key_translator.c [HAVE_CHARSET]: Add charset
|
||||||
|
conversion support.
|
||||||
|
From Walery Studennikov <hqsoftware@mail.ru>.
|
||||||
|
|
||||||
* extraconf.h [HAVE_X]: Undefine HAVE_TEXTMODE_X11_SUPPORT.
|
* extraconf.h [HAVE_X]: Undefine HAVE_TEXTMODE_X11_SUPPORT.
|
||||||
|
|
||||||
2001-06-01 Pavel Roskin <proski@gnu.org>
|
2001-06-01 Pavel Roskin <proski@gnu.org>
|
||||||
|
@ -145,6 +145,16 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_CHARSET
|
||||||
|
if (x_key == XCTRL('t')) {
|
||||||
|
do_select_codepage();
|
||||||
|
|
||||||
|
edit->force = REDRAW_COMPLETELY;
|
||||||
|
command = CK_Refresh;
|
||||||
|
goto fin;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (x_key == XCTRL ('q')) {
|
if (x_key == XCTRL ('q')) {
|
||||||
char_for_insertion = edit_raw_key_query (_(" Insert Literal "), _(" Press any key: "), 0);
|
char_for_insertion = edit_raw_key_query (_(" Insert Literal "), _(" Press any key: "), 0);
|
||||||
goto fin;
|
goto fin;
|
||||||
@ -268,10 +278,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* an ordinary insertable character */
|
/* an ordinary insertable character */
|
||||||
|
|
||||||
|
#ifndef HAVE_CHARSET
|
||||||
if (x_key < 256 && is_printable (x_key)) {
|
if (x_key < 256 && is_printable (x_key)) {
|
||||||
char_for_insertion = x_key;
|
char_for_insertion = x_key;
|
||||||
|
#else
|
||||||
|
if (x_key < 256 && is_printable (conv_input [x_key])) {
|
||||||
|
char_for_insertion = conv_input [x_key];
|
||||||
|
#endif
|
||||||
goto fin;
|
goto fin;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* other commands */
|
/* other commands */
|
||||||
i = 0;
|
i = 0;
|
||||||
while (key_map[i] != x_key && (key_map[i] || key_map[i + 1]))
|
while (key_map[i] != x_key && (key_map[i] || key_map[i + 1]))
|
||||||
|
Loading…
Reference in New Issue
Block a user