1
0
Fork 0

- [gemini] allowed scrolling of a gemini page when focus is on the TOC.

This commit is contained in:
cage 2021-06-16 19:18:30 +02:00
parent 34284f9a51
commit ea6485271d
3 changed files with 14 additions and 2 deletions

View File

@ -367,10 +367,14 @@
(define-key "down" #'gemini-toc-scroll-down *gemini-toc-keymap*)
(define-key "C-J" #'gemini-toc-jump-to-entry *gemini-toc-keymap*)
(define-key "q" #'gemini-toc-close *gemini-toc-keymap*)
(define-key "p" #'gemini-toc-scroll-down-page *gemini-toc-keymap*)
(define-key "C-J" #'gemini-toc-scroll-down-page *gemini-toc-keymap*)
(define-key "n" #'gemini-toc-scroll-up-page *gemini-toc-keymap*)
;; gemini stream window keymap
(define-key "a" #'gemini-abort-download *gemini-downloads-keymap*)

View File

@ -2559,6 +2559,8 @@
:gemini-toc-scroll-down
:gemini-toc-jump-to-entry
:gemini-toc-close
:gemini-toc-scroll-down-page
:gemini-toc-scroll-up-page
:pass-focus-on-left
:pass-focus-on-right
:pass-focus-on-bottom

View File

@ -1977,3 +1977,9 @@ gemini page the program is rendering."
(defun gemini-toc-close ()
(close-window-and-return-to-message *gemini-toc-window*))
(defun gemini-toc-scroll-down-page ()
(message-window:scroll-down *message-window*))
(defun gemini-toc-scroll-up-page ()
(message-window:scroll-up *message-window*))