Trap cursor in buttons better in dashboard #465
This commit is contained in:
parent
3f85c76a2c
commit
d75df875c9
1 changed files with 6 additions and 3 deletions
|
@ -97,9 +97,12 @@ Possible values:
|
||||||
|
|
||||||
(defun +doom-dashboard|reposition-point ()
|
(defun +doom-dashboard|reposition-point ()
|
||||||
"Trap the point in the buttons."
|
"Trap the point in the buttons."
|
||||||
(unless (button-at (point))
|
(or (ignore-errors
|
||||||
(or (+doom-dashboard/previous-button)
|
(if (button-at (point))
|
||||||
(+doom-dashboard/first-button))))
|
(forward-button 0)
|
||||||
|
(backward-button 1)))
|
||||||
|
(progn (goto-char (point-min))
|
||||||
|
(forward-button 1))))
|
||||||
|
|
||||||
(defun +doom-dashboard|init ()
|
(defun +doom-dashboard|init ()
|
||||||
"Initializes Doom's dashboard."
|
"Initializes Doom's dashboard."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue