From: Lars Ingebrigtsen Date: Sun, 31 Oct 2021 22:56:07 +0000 (+0100) Subject: Make TAB work on the outline buttons X-Git-Tag: emacs-29.0.90~3671^2~318 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=940b414cfe4a0d299572a80728566c7ef353dd37;p=emacs.git Make TAB work on the outline buttons * lisp/outline.el (outline--insert-close-button) (outline--insert-open-button): Make TAB work to toggle on the buttons, too. --- diff --git a/lisp/outline.el b/lisp/outline.el index 6a2738a7f84..12f63811398 100644 --- a/lisp/outline.el +++ b/lisp/outline.el @@ -976,6 +976,7 @@ If non-nil, EVENT should be a mouse event." (overlay-put o 'help-echo "Click to hide") (overlay-put o 'keymap (define-keymap + :parent outline-minor-mode-cycle-map ["RET"] #'outline-hide-subtree [""] 'mouse-face [""] #'outline-hide-subtree))))) @@ -987,6 +988,7 @@ If non-nil, EVENT should be a mouse event." (overlay-put o 'help-echo "Click to show") (overlay-put o 'keymap (define-keymap + :parent outline-minor-mode-cycle-map ["RET"] #'outline-show-subtree [""] 'mouse-face [""] #'outline-show-subtree)))))