Index: src/key.c =================================================================== RCS file: /cvsroot/mc/mc/src/key.c,v retrieving revision 1.91 diff -u -p -r1.91 key.c --- src/key.c 12 Aug 2006 18:22:44 -0000 1.91 +++ src/key.c 15 Sep 2006 08:15:55 -0000 @@ -803,7 +808,7 @@ int get_key_code (int no_delay) d = ALT(*pending_keys++); goto check_pend; } - if ((d & 0x80) && use_8th_bit_as_meta) + if ((d > 127 && d < 256) && use_8th_bit_as_meta) d = ALT(d & 0x7f); this = NULL; return correct_key_code (d); @@ -862,7 +867,7 @@ int get_key_code (int no_delay) this = keys; parent = NULL; - if ((c & 0x80) && use_8th_bit_as_meta) { + if ((c > 127 && c < 256) && use_8th_bit_as_meta) { c &= 0x7f; /* The first sequence defined starts with esc */