On OSX, using the following variable/keymap and code snippet, a mouse click on the "SUBMIT" button will generate a system popup confirmation message, whereas an enter key on the "SUBMIT" button will generate a minibuffer confirmation message. Is there setting to control whether the confirmation is requested in the minibuffer versus a system popup?
VARIABLE: my-widget-keymap
(defvar my-widget-keymap
(let ((map (make-sparse-keymap)))
(define-key map [down-mouse-2] 'widget-button-click)
(define-key map [down-mouse-1] 'widget-button-click)
(define-key map "\r" 'widget-button-press)
map)
"Keymap containing useful binding for buffers containing widgets.")
CODE SNIPPET:
(let ((buffer (get-buffer-create "*TEST*")))
(with-current-buffer buffer
(erase-buffer)
(widget-create 'push-button
:tag "SUBMIT"
:format "%[%v%]"
:keymap my-widget-keymap
:notify `(lambda (_wid &rest _ignore)
(when (y-or-n-p "proceed?")
(message "Hello-World!")))))
(display-buffer buffer t))