diff src/keymap.c @ 100:4be1180a9e89 r20-1b2

Import from CVS: tag r20-1b2
author cvs
date Mon, 13 Aug 2007 09:15:11 +0200
parents 0d2f883870bc
children 8619ce7e4c50
line wrap: on
line diff
--- a/src/keymap.c	Mon Aug 13 09:13:58 2007 +0200
+++ b/src/keymap.c	Mon Aug 13 09:15:11 2007 +0200
@@ -39,6 +39,18 @@
 #include "keymap.h"
 #include "window.h"
 
+#ifdef WINDOWSNT
+/* Hmm, under unix we want X modifiers, under NT we want X modifiers if
+   we are running X and Windows modifiers otherwise.
+   gak. This is a kludge until we support multiple native GUIs!
+*/
+#undef MOD_ALT
+#undef MOD_CONTROL
+#undef MOD_SHIFT
+#endif
+
+#include <events-mod.h>
+
 
 /* A keymap contains four slots:
 
@@ -2095,7 +2107,7 @@
   if (nkeys == 0)
     return Qnil;
 
-  if (nkeys > (countof (kkk)))
+  if (nkeys < (countof (kkk)))
     raw_keys = kkk;
   else
     raw_keys = (struct key_data *) alloca (sizeof (struct key_data) * nkeys);