From 3af640487fa3a7033a30acb9c4b5fc240cb910dc Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 22 Feb 2007 17:35:14 +0000 Subject: * fhandler_console.cc (fhandler_console::read): Drop 9x specific handling of AltGr key. * mmap.cc: Take NT for granted throughout. * wincap.cc: Remove map_view_of_file_ex_sucks, altgr_is_ctrl_alt, has_working_copy_on_write, share_mmaps_only_by_name, virtual_protect_works_on_shared_pages, has_mmap_alignment_bug and has_working_virtual_lock throughout. * wincap.h: Ditto. --- winsup/cygwin/fhandler_console.cc | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'winsup/cygwin/fhandler_console.cc') diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 13501ddab..4bd04fbd0 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -385,17 +385,9 @@ fhandler_console::read (void *pv, size_t& buflen) part is to distinguish whether the right Alt key should be recognized as Alt, or as AltGr. */ bool meta; - if (wincap.altgr_is_ctrl_alt ()) - /* WinNT: AltGr is reported as Ctrl+Alt, and Ctrl+Alt is - treated just like AltGr. However, if Ctrl+Alt+key generates - an ASCII control character, interpret is as META. */ - meta = (control_key_state & ALT_PRESSED) != 0 - && ((control_key_state & CTRL_PRESSED) == 0 - || ((signed char) ich >= 0 && ich <= 0x1f || ich == 0x7f)); - else - /* Win9x: there's no way to distinguish Alt from AltGr, so rely - on dev_state->meta_mask heuristic (see fhandler_console constructor). */ - meta = (control_key_state & dev_state->meta_mask) != 0; + meta = (control_key_state & ALT_PRESSED) != 0 + && ((control_key_state & CTRL_PRESSED) == 0 + || ((signed char) ich >= 0 && ich <= 0x1f || ich == 0x7f)); if (!meta) toadd = tmp + 1; else if (dev_state->metabit) -- cgit v1.2.3