From ee2e35afb463eca83e667faa922d7555d3c0a434 Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Tue, 14 Sep 2004 17:18:25 +0000 Subject: [PATCH] * key.c (get_modifier): Recognize keyboard modifiers on Cygwin. --- src/ChangeLog | 4 ++++ src/key.c | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index bb50a8bca..addd25ff6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2004-09-14 Pavel Tsekov + + * key.c (get_modifier): Recognize keyboard modifiers on Cygwin. + 2004-09-12 Pavel Shirshov * execute.c (toggle_panels): Fix error. show_output_starts_shell=1 diff --git a/src/key.c b/src/key.c index c417a6cd3..7e7afd8f3 100644 --- a/src/key.c +++ b/src/key.c @@ -59,6 +59,11 @@ # include #endif /* __linux__ */ +#ifdef __CYGWIN__ +# include +# include +#endif /* __CYGWIN__ */ + #ifdef __QNXNTO__ # include # include @@ -1276,7 +1281,7 @@ get_modifier (void) result |= KEY_M_SHIFT; } #endif /* __QNXNTO__ */ -#ifdef __linux__ +#if defined __linux__ || (defined __CYGWIN__ && defined TIOCLINUX) { unsigned char modifiers = 6;