]> git.eshelyaron.com Git - emacs.git/commitdiff
Make TAB work on the outline buttons
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 31 Oct 2021 22:56:07 +0000 (23:56 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 31 Oct 2021 22:56:07 +0000 (23:56 +0100)
* lisp/outline.el (outline--insert-close-button)
(outline--insert-open-button): Make TAB work to toggle on the
buttons, too.

lisp/outline.el

index 6a2738a7f8411c3845045f8ab7b1e1fab3e54a97..12f6381139841b6613aea63c3ea3887c40d8ea9e 100644 (file)
@@ -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
                      ["<follow-link>"] 'mouse-face
                      ["<mouse-2>"] #'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
                      ["<follow-link>"] 'mouse-face
                      ["<mouse-2>"] #'outline-show-subtree)))))