diff --git a/src/conio/win32cio.c b/src/conio/win32cio.c index cfdfd6468a0d95dcf2c5848de70843ef7f80e5c6..c05183ec893b569909649c1e3283312de414a4fe 100644 --- a/src/conio/win32cio.c +++ b/src/conio/win32cio.c @@ -42,15 +42,6 @@ const int cio_tabs[10]={9,17,25,33,41,49,57,65,73,80}; -const int altkeys[26]={ - 30,48,46,32 - ,18,33,34,35 - ,23,36,37,38 - ,50,49,24,25 - ,16,19,31,20 - ,22,47,17,45 - ,21,44}; - struct vid_mode { int mode; int xsize; @@ -180,10 +171,6 @@ int win32_keyboardio(int isgetch) #endif if(input.Event.KeyEvent.dwControlKeyState & (LEFT_ALT_PRESSED|RIGHT_ALT_PRESSED)) { - if(isalpha(input.Event.KeyEvent.uChar.AsciiChar)) { - lastch=altkeys[toupper(input.Event.KeyEvent.uChar.AsciiChar)-'A']<<8; - break; - } if(input.Event.KeyEvent.wVirtualScanCode >= CIO_KEY_F(1) && input.Event.KeyEvent.wVirtualScanCode <= CIO_KEY_F(10)) { /* Magic number to convert from Fx to ALT-Fx */ @@ -196,6 +183,8 @@ int win32_keyboardio(int isgetch) lastch=input.Event.KeyEvent.wVirtualScanCode+6; break; } + + lastch=input.Event.KeyEvent.wVirtualScanCode<<8; } if(input.Event.KeyEvent.uChar.AsciiChar)