aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/help.el
diff options
context:
space:
mode:
authorChong Yidong <[email protected]>2006-03-07 15:53:41 +0000
committerChong Yidong <[email protected]>2006-03-07 15:53:41 +0000
commit46d91fa0dff86fe6212466b40c68a2a08a1523d2 (patch)
tree07a31ae79f23668cfc725dcc2fbf2a60eb662f32 /lisp/help.el
parent19bf3d3fa4b714b62170276250441bd726a3f625 (diff)
* help.el (describe-key-briefly): If KEY is a down event, read and
discard the up event.
Diffstat (limited to 'lisp/help.el')
-rw-r--r--lisp/help.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/help.el b/lisp/help.el
index 7c84f44f6a..a39d344dc0 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -577,6 +577,12 @@ temporarily enables it to allow getting help on disabled items and buttons."
(setq saved-yank-menu (copy-sequence yank-menu))
(menu-bar-update-yank-menu "(any string)" nil))
(setq key (read-key-sequence "Describe key (or click or menu item): "))
+ ;; If KEY is a down-event, read and discard the
+ ;; corresponding up-event.
+ (if (and (vectorp key)
+ (eventp (elt key 0))
+ (memq 'down (event-modifiers (elt key 0))))
+ (read-event))
(list
key
(if current-prefix-arg (prefix-numeric-value current-prefix-arg))