diff --git a/lisp/mouse.el b/lisp/mouse.el index 9d86681384..9e37527e70 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -452,10 +452,20 @@ context-menu-entry `(menu-item ,(purecopy "Context Menu") ignore :filter (lambda (_) (context-menu-map)))) +(defun context-menu-open () + "Start key navigation of the context menu. +This is the keyboard interface to \\[context-menu-map]." + (interactive) + (let ((inhibit-mouse-event-check t)) + (popup-menu (context-menu-map) (point)))) + +(global-set-key [S-f6] #'context-menu-open) + (defvar context-menu-mode-map (let ((map (make-sparse-keymap))) (define-key map [mouse-3] nil) (define-key map [down-mouse-3] context-menu-entry) + (define-key map [menu] #'context-menu-open) (when (featurep 'ns) (define-key map [C-mouse-1] nil) (define-key map [C-down-mouse-1] context-menu-entry)) @@ -468,16 +478,6 @@ context-menu-mode When Context Menu mode is enabled, clicking the mouse button down-mouse-3 activates the menu whose contents depends on its surrounding context." :global t :group 'mouse) - -(defun context-menu-open () - "Start key navigation of the context menu. -This is the keyboard interface to \\[context-menu-map]." - (interactive) - (let ((inhibit-mouse-event-check t)) - (popup-menu (context-menu-map) (point)))) - -(global-set-key [S-f10] 'context-menu-open) - ;; Commands that operate on windows. diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el index e63bf36cc3..d37206e018 100644 --- a/lisp/term/xterm.el +++ b/lisp/term/xterm.el @@ -350,7 +350,7 @@ xterm-function-map (define-key map "\e[5;3~" [M-prior]) (define-key map "\e[6;3~" [M-next]) - (define-key map "\e[29~" [print]) + (define-key map "\e[29~" [menu]) (define-key map "\eOj" [kp-multiply]) (define-key map "\eOk" [kp-add])