summaryrefslogtreecommitdiff
path: root/src/w32inevt.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-06-19 22:18:48 +0000
committerRichard M. Stallman <rms@gnu.org>1996-06-19 22:18:48 +0000
commit5d5c8fb51a9c2ddeffdf68ef44e5640e3c021cab (patch)
tree5111e13462bb18ad6bba48a626b954be9ac75cb9 /src/w32inevt.c
parentad984accb9137e12dc4dd5f8518ce0d7bda0bcc6 (diff)
downloademacs-5d5c8fb51a9c2ddeffdf68ef44e5640e3c021cab.tar.gz
(Vwin32_alt_is_meta): Declared.
(win32_kbd_mods_to_emacs): Map Alt to alt_modifier if required.
Diffstat (limited to 'src/w32inevt.c')
-rw-r--r--src/w32inevt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/w32inevt.c b/src/w32inevt.c
index f7565affb94..2549d1609dc 100644
--- a/src/w32inevt.c
+++ b/src/w32inevt.c
@@ -47,6 +47,9 @@ extern void reinvoke_input_signal (void);
/* 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 @@ win32_kbd_mods_to_emacs (DWORD mods)
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))
{