From 0a6aed7148e17fe73a0af275ef2604440b35fb3d Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Wed, 12 Jun 2002 06:07:25 +0000 Subject: [PATCH] Some experiments for AltGr detection --- goldlib/gall/gkbdbase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/goldlib/gall/gkbdbase.cpp b/goldlib/gall/gkbdbase.cpp index 831bd64..f18f013 100644 --- a/goldlib/gall/gkbdbase.cpp +++ b/goldlib/gall/gkbdbase.cpp @@ -866,7 +866,7 @@ int gkbd_nt2bios(INPUT_RECORD& inp) { if(c != -1) if(ascii and not (right_alt_same_as_left ? (state & (LEFT_ALT_PRESSED | RIGHT_ALT_PRESSED)) : (state & LEFT_ALT_PRESSED))) - if(isalnum(keycode)) + if(!iscntrl(keycode)) return ascii; if(ISEXT(c)) return EXTVAL(c) << 8; @@ -1245,7 +1245,7 @@ gkey kbxget_raw(int mode) { } // fall through default: - if(ascii == '\x2e') { + if((ascii == '\x2e') or (alt_pressed and ctrl_pressed)) { k = (gkey)ascii; } else {