mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
autoload/popups: consider non-evil context for doom/popup-close-maybe
This commit is contained in:
@ -95,7 +95,9 @@ possible rules."
|
|||||||
"Close the current popup *if* its window doesn't have a noesc parameter."
|
"Close the current popup *if* its window doesn't have a noesc parameter."
|
||||||
(interactive)
|
(interactive)
|
||||||
(if (window-parameter (selected-window) 'noesc)
|
(if (window-parameter (selected-window) 'noesc)
|
||||||
(call-interactively 'evil-force-normal-state)
|
(call-interactively (if (featurep 'evil)
|
||||||
|
'evil-force-normal-state
|
||||||
|
'keyboard-escape-quit))
|
||||||
(doom/popup-close)))
|
(doom/popup-close)))
|
||||||
|
|
||||||
(defun doom--popup-data (window)
|
(defun doom--popup-data (window)
|
||||||
|
Reference in New Issue
Block a user