diff options
| author | Eli Zaretskii | 2019-06-06 16:28:04 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-06-06 16:28:04 +0300 |
| commit | ee21b402d75c1fb0d6c09dc9f8a02f2bff0325f6 (patch) | |
| tree | f68d3185b366650679147a50544aa493f662064a | |
| parent | f68b33f50299339a36da29cd1913d19fd5f288e0 (diff) | |
| download | emacs-ee21b402d75c1fb0d6c09dc9f8a02f2bff0325f6.tar.gz emacs-ee21b402d75c1fb0d6c09dc9f8a02f2bff0325f6.zip | |
* lisp/term/w32-win.el ([noname]): Bind to 'ignore'. (Bug#36083)
| -rw-r--r-- | lisp/term/w32-win.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el index 39f393fcf98..12c3e97e411 100644 --- a/lisp/term/w32-win.el +++ b/lisp/term/w32-win.el | |||
| @@ -170,6 +170,15 @@ the last file dropped is selected." | |||
| 170 | ;; new layout/language selected by the user. | 170 | ;; new layout/language selected by the user. |
| 171 | (global-set-key [language-change] 'ignore) | 171 | (global-set-key [language-change] 'ignore) |
| 172 | 172 | ||
| 173 | ;; Some Windows applications send the 'noname' (VK_NONAME) pseudo-key | ||
| 174 | ;; to prevent Windows from sleeping. We want to ignore these key | ||
| 175 | ;; events, to avoid annoying users by ringing the bell and announcing | ||
| 176 | ;; that the key is not bound. | ||
| 177 | (global-set-key [noname] 'ignore) | ||
| 178 | (global-set-key [C-noname] 'ignore) | ||
| 179 | (global-set-key [M-noname] 'ignore) | ||
| 180 | |||
| 181 | |||
| 173 | (defvar x-resource-name) | 182 | (defvar x-resource-name) |
| 174 | 183 | ||
| 175 | 184 | ||