aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32fns.c11
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. */
64Lisp_Object Vw32_alt_is_meta; 64Lisp_Object Vw32_alt_is_meta;
65 65
66/* If non-zero, the windows virtual key code for an alternative quit key. */
67Lisp_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). */
68Lisp_Object Vw32_pass_lwindow_to_system; 71Lisp_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.");
7224When nil, Emacs will translate the alt key to the Alt modifier, and not Meta."); 7229When 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\