[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/android 843d8797db8 3/3: Fix use dialog box regression on Androi
From: |
Po Lu |
Subject: |
feature/android 843d8797db8 3/3: Fix use dialog box regression on Android |
Date: |
Mon, 1 May 2023 02:17:23 -0400 (EDT) |
branch: feature/android
commit 843d8797db80aa13f50c9bab4e3c5c4fa0b80edc
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix use dialog box regression on Android
* lisp/subr.el (use-dialog-box-p): Always prefer dialog boxes.
---
lisp/subr.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/subr.el b/lisp/subr.el
index b1e460b88eb..a695d52046e 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -3601,7 +3601,8 @@ confusing to some users.")
(defun use-dialog-box-p ()
"Return non-nil if the current command should prompt the user via a dialog
box."
(and last-input-event ; not during startup
- (or (consp last-nonmenu-event) ; invoked by a mouse event
+ (or (featurep 'android) ; prefer dialog boxes on Android
+ (consp last-nonmenu-event) ; invoked by a mouse event
from--tty-menu-p) ; invoked via TTY menu
use-dialog-box))