diff options
| author | Andrew Innes | 1999-02-17 12:47:59 +0000 |
|---|---|---|
| committer | Andrew Innes | 1999-02-17 12:47:59 +0000 |
| commit | 7d08135584f1133151b366b5a09ddd1e259dab10 (patch) | |
| tree | 265d348358a2cc116a8dbfac4c57a27a56af44c7 /src | |
| parent | a1e24774280e6b8b516b2e7d0c69a7473d4420cc (diff) | |
| download | emacs-7d08135584f1133151b366b5a09ddd1e259dab10.tar.gz emacs-7d08135584f1133151b366b5a09ddd1e259dab10.zip | |
(Vw32_quit_key): New variable.
(post_character_message): Use it.
(syms_of_w32fns): DEFVAR it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 1cfde7d0739..25bec1f90ff 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -63,6 +63,9 @@ Lisp_Object Vw32_pass_alt_to_system; | |||
| 63 | to alt_modifier. */ | 63 | to alt_modifier. */ |
| 64 | Lisp_Object Vw32_alt_is_meta; | 64 | Lisp_Object Vw32_alt_is_meta; |
| 65 | 65 | ||
| 66 | /* If non-zero, the windows virtual key code for an alternative quit key. */ | ||
| 67 | Lisp_Object Vw32_quit_key; | ||
| 68 | |||
| 66 | /* Non nil if left window key events are passed on to Windows (this only | 69 | /* Non nil if left window key events are passed on to Windows (this only |
| 67 | affects whether "tapping" the key opens the Start menu). */ | 70 | affects whether "tapping" the key opens the Start menu). */ |
| 68 | Lisp_Object Vw32_pass_lwindow_to_system; | 71 | Lisp_Object Vw32_pass_lwindow_to_system; |
| @@ -3619,7 +3622,9 @@ post_character_message (hwnd, msg, wParam, lParam, modifiers) | |||
| 3619 | int c = wParam; | 3622 | int c = wParam; |
| 3620 | if (isalpha (c) && wmsg.dwModifiers == ctrl_modifier) | 3623 | if (isalpha (c) && wmsg.dwModifiers == ctrl_modifier) |
| 3621 | c = make_ctrl_char (c) & 0377; | 3624 | c = make_ctrl_char (c) & 0377; |
| 3622 | if (c == quit_char) | 3625 | if (c == quit_char |
| 3626 | || (wmsg.dwModifiers == 0 && | ||
| 3627 | XFASTINT (Vw32_quit_key) && wParam == XFASTINT (Vw32_quit_key))) | ||
| 3623 | { | 3628 | { |
| 3624 | Vquit_flag = Qt; | 3629 | Vquit_flag = Qt; |
| 3625 | 3630 | ||
| @@ -7224,6 +7229,10 @@ open the System menu. When nil, Emacs silently swallows alt key events."); | |||
| 7224 | When nil, Emacs will translate the alt key to the Alt modifier, and not Meta."); | 7229 | When nil, Emacs will translate the alt key to the Alt modifier, and not Meta."); |
| 7225 | Vw32_alt_is_meta = Qt; | 7230 | Vw32_alt_is_meta = Qt; |
| 7226 | 7231 | ||
| 7232 | DEFVAR_INT ("w32-quit-key", &Vw32_quit_key, | ||
| 7233 | "If non-zero, the virtual key code for an alternative quit key."); | ||
| 7234 | XSETINT (Vw32_quit_key, 0); | ||
| 7235 | |||
| 7227 | DEFVAR_LISP ("w32-pass-lwindow-to-system", | 7236 | DEFVAR_LISP ("w32-pass-lwindow-to-system", |
| 7228 | &Vw32_pass_lwindow_to_system, | 7237 | &Vw32_pass_lwindow_to_system, |
| 7229 | "Non-nil if the left \"Windows\" key is passed on to Windows.\n\ | 7238 | "Non-nil if the left \"Windows\" key is passed on to Windows.\n\ |