changeset 15460:be07c4433554

(Vwin32_alt_is_meta): Declared. (win32_kbd_mods_to_emacs): Map Alt to alt_modifier if required.
author Richard M. Stallman <rms@gnu.org>
date Wed, 19 Jun 1996 22:18:48 +0000
parents 76ff60cd2b8d
children a0dc879461b8
files src/w32inevt.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32inevt.c	Wed Jun 19 22:17:35 1996 +0000
+++ b/src/w32inevt.c	Wed Jun 19 22:18:48 1996 +0000
@@ -47,6 +47,9 @@
 /* from dispnew.c */
 extern int change_frame_size (FRAME_PTR, int, int, int, int);
 
+/* from w32fns.c */
+extern Lisp_Object Vwin32_alt_is_meta;
+
 /* Event queue */
 #define EVENT_QUEUE_SIZE 50
 static INPUT_RECORD event_queue[EVENT_QUEUE_SIZE];
@@ -103,7 +106,7 @@
     mods &= ~ (RIGHT_ALT_PRESSED | LEFT_CTRL_PRESSED);
 
   if (mods & (RIGHT_ALT_PRESSED | LEFT_ALT_PRESSED))
-    retval = meta_modifier;
+    retval = ((NILP (Vwin32_alt_is_meta)) ? alt_modifier : meta_modifier);
   
   if (mods & (RIGHT_CTRL_PRESSED | LEFT_CTRL_PRESSED))
     {