mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-05 11:04:42 +03:00
Converted from DOS to UNIX format (CRLF->LF)
key_table renamed to fkt_table in key_nt.c to prevent name conflict with slint.c
This commit is contained in:
parent
29c55cee18
commit
79ddddb4ef
@ -48,7 +48,7 @@ int use_8th_bit_as_meta = 0;
|
|||||||
struct {
|
struct {
|
||||||
int key_code;
|
int key_code;
|
||||||
int vkcode;
|
int vkcode;
|
||||||
} key_table [] = {
|
} fkt_table [] = {
|
||||||
{ KEY_F(1), VK_F1 },
|
{ KEY_F(1), VK_F1 },
|
||||||
{ KEY_F(2), VK_F2 },
|
{ KEY_F(2), VK_F2 },
|
||||||
{ KEY_F(3), VK_F3 },
|
{ KEY_F(3), VK_F3 },
|
||||||
@ -118,9 +118,9 @@ static int VKtoCurses (int a_vkc)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; key_table[i].vkcode != 0; i++)
|
for (i = 0; fkt_table[i].vkcode != 0; i++)
|
||||||
if (a_vkc == key_table[i].vkcode) {
|
if (a_vkc == fkt_table[i].vkcode) {
|
||||||
return key_table[i].key_code;
|
return fkt_table[i].key_code;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user