diff options
| author | Richard M. Stallman | 1996-06-19 22:18:48 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-06-19 22:18:48 +0000 |
| commit | 5a6816daacc3e7c9becacec7588f91c418e08683 (patch) | |
| tree | e50f109218c07232747b837b7236a07ab03bc63b /src | |
| parent | 8c205c63c0f8e9562333d2797e4943d35158f0a6 (diff) | |
| download | emacs-5a6816daacc3e7c9becacec7588f91c418e08683.tar.gz emacs-5a6816daacc3e7c9becacec7588f91c418e08683.zip | |
(Vwin32_alt_is_meta): Declared.
(win32_kbd_mods_to_emacs): Map Alt to alt_modifier if required.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32inevt.c | 5 |
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); | |||
| 47 | /* from dispnew.c */ | 47 | /* from dispnew.c */ |
| 48 | extern int change_frame_size (FRAME_PTR, int, int, int, int); | 48 | extern int change_frame_size (FRAME_PTR, int, int, int, int); |
| 49 | 49 | ||
| 50 | /* from w32fns.c */ | ||
| 51 | extern Lisp_Object Vwin32_alt_is_meta; | ||
| 52 | |||
| 50 | /* Event queue */ | 53 | /* Event queue */ |
| 51 | #define EVENT_QUEUE_SIZE 50 | 54 | #define EVENT_QUEUE_SIZE 50 |
| 52 | static INPUT_RECORD event_queue[EVENT_QUEUE_SIZE]; | 55 | static INPUT_RECORD event_queue[EVENT_QUEUE_SIZE]; |
| @@ -103,7 +106,7 @@ win32_kbd_mods_to_emacs (DWORD mods) | |||
| 103 | mods &= ~ (RIGHT_ALT_PRESSED | LEFT_CTRL_PRESSED); | 106 | mods &= ~ (RIGHT_ALT_PRESSED | LEFT_CTRL_PRESSED); |
| 104 | 107 | ||
| 105 | if (mods & (RIGHT_ALT_PRESSED | LEFT_ALT_PRESSED)) | 108 | if (mods & (RIGHT_ALT_PRESSED | LEFT_ALT_PRESSED)) |
| 106 | retval = meta_modifier; | 109 | retval = ((NILP (Vwin32_alt_is_meta)) ? alt_modifier : meta_modifier); |
| 107 | 110 | ||
| 108 | if (mods & (RIGHT_CTRL_PRESSED | LEFT_CTRL_PRESSED)) | 111 | if (mods & (RIGHT_CTRL_PRESSED | LEFT_CTRL_PRESSED)) |
| 109 | { | 112 | { |