From: Eli Zaretskii Date: Thu, 6 Jun 2019 13:28:04 +0000 (+0300) Subject: * lisp/term/w32-win.el ([noname]): Bind to 'ignore'. (Bug#36083) X-Git-Tag: emacs-26.2.90~19 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ee21b40;p=emacs.git * lisp/term/w32-win.el ([noname]): Bind to 'ignore'. (Bug#36083) --- 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." ;; new layout/language selected by the user. (global-set-key [language-change] 'ignore) +;; Some Windows applications send the 'noname' (VK_NONAME) pseudo-key +;; to prevent Windows from sleeping. We want to ignore these key +;; events, to avoid annoying users by ringing the bell and announcing +;; that the key is not bound. +(global-set-key [noname] 'ignore) +(global-set-key [C-noname] 'ignore) +(global-set-key [M-noname] 'ignore) + + (defvar x-resource-name)