aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/emacs/input.texi4
-rw-r--r--lisp/net/eww.el18
-rw-r--r--lisp/touch-screen.el11
3 files changed, 19 insertions, 14 deletions
diff --git a/doc/emacs/input.texi b/doc/emacs/input.texi
index d48c13355b3..b553c0895cd 100644
--- a/doc/emacs/input.texi
+++ b/doc/emacs/input.texi
@@ -127,9 +127,9 @@ minibuffer being brought into use (@pxref{Minibuffer}).
127@vindex touch-screen-set-point-commands 127@vindex touch-screen-set-point-commands
128 When a ``tap'' gesture results in a command being executed, Emacs 128 When a ``tap'' gesture results in a command being executed, Emacs
129checks whether the command is meant to set the point by searching for it 129checks whether the command is meant to set the point by searching for it
130in the list @code{touch-screen-set-point-commands}. If it is and the 130in the list @code{touch-screen-set-point-commands}. If it is, and the
131text beneath the new point is not read-only, the virtual keyboard is 131text beneath the new point is not read-only, the virtual keyboard is
132activated, in anticipation of the user entering text there. 132activated, in anticipation of the user input there.
133 133
134 The default value of @code{touch-screen-set-point-commands} holds only 134 The default value of @code{touch-screen-set-point-commands} holds only
135the command @code{mouse-set-point} (@pxref{Mouse Commands}), which is 135the command @code{mouse-set-point} (@pxref{Mouse Commands}), which is
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 4bb491b9970..5a138dcc46a 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1304,10 +1304,11 @@ This consults the entries in `eww-readable-urls' (which see)."
1304 1304
1305(defun eww-check-text-conversion () 1305(defun eww-check-text-conversion ()
1306 "Check if point is within a field and toggle text conversion. 1306 "Check if point is within a field and toggle text conversion.
1307If `text-conversion-style' is not `action' if point is within the 1307Set `text-conversion-style' to the value `action' if it isn't
1308prompt or `nil' otherwise, set it to such a value, so as to 1308already and point is within the prompt field, or if
1309guarantee that the input method functions properly for the 1309`text-conversion-style' is `nil', so as to guarantee that
1310purpose of typing within the ERC prompt." 1310the input method functions properly for the purpose of typing
1311within the ERC prompt."
1311 (when (and (eq major-mode 'eww-mode) 1312 (when (and (eq major-mode 'eww-mode)
1312 (fboundp 'set-text-conversion-style)) 1313 (fboundp 'set-text-conversion-style))
1313 (if (eq (car-safe (get-text-property (point) 'field)) 1314 (if (eq (car-safe (get-text-property (point) 'field))
@@ -1649,7 +1650,8 @@ just re-display the HTML already fetched."
1649 1650
1650(defun eww-select-file (&optional event) 1651(defun eww-select-file (&optional event)
1651 "Change the value of the upload file menu under point. 1652 "Change the value of the upload file menu under point.
1652EVENT, if non-nil, is the mouse event that preceded this command." 1653EVENT, if non-nil, is the mouse event that preceded this command.
1654Interactively, EVENT is the value of `last-nonmenu-event'."
1653 (interactive (list last-nonmenu-event) eww-mode) 1655 (interactive (list last-nonmenu-event) eww-mode)
1654 (when (and event (setq event (event-start event))) 1656 (when (and event (setq event (event-start event)))
1655 (goto-char (posn-point event))) 1657 (goto-char (posn-point event)))
@@ -1904,7 +1906,8 @@ See URL `https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input'.")
1904 1906
1905(defun eww-toggle-checkbox (&optional event) 1907(defun eww-toggle-checkbox (&optional event)
1906 "Toggle the value of the checkbox under point. 1908 "Toggle the value of the checkbox under point.
1907EVENT, if non-nil, is the mouse event that preceded this command." 1909EVENT, if non-nil, is the mouse event that preceded this command.
1910Interactively, EVENT is the value of `last-nonmenu-event'."
1908 (interactive (list last-nonmenu-event) eww-mode) 1911 (interactive (list last-nonmenu-event) eww-mode)
1909 (when (and event (setq event (event-start event))) 1912 (when (and event (setq event (event-start event)))
1910 (goto-char (posn-point event))) 1913 (goto-char (posn-point event)))
@@ -1977,7 +1980,8 @@ EVENT, if non-nil, is the mouse event that preceded this command."
1977 1980
1978(defun eww-submit (&optional event) 1981(defun eww-submit (&optional event)
1979 "Submit the form under point or EVENT. 1982 "Submit the form under point or EVENT.
1980EVENT, if non-nil, is the mouse event that preceded this command." 1983EVENT, if non-nil, is the mouse event that preceded this command.
1984Interactively, EVENT is the value of `last-nonmenu-event'."
1981 (interactive (list last-nonmenu-event) eww-mode) 1985 (interactive (list last-nonmenu-event) eww-mode)
1982 (when (and event (setq event (event-start event))) 1986 (when (and event (setq event (event-start event)))
1983 (goto-char (posn-point event))) 1987 (goto-char (posn-point event)))
diff --git a/lisp/touch-screen.el b/lisp/touch-screen.el
index 537780eb708..e44b266a617 100644
--- a/lisp/touch-screen.el
+++ b/lisp/touch-screen.el
@@ -1360,18 +1360,19 @@ is not read-only."
1360 (when command 1360 (when command
1361 (if (or (memq command touch-screen-set-point-commands) 1361 (if (or (memq command touch-screen-set-point-commands)
1362 ;; Users of packages that redefine 1362 ;; Users of packages that redefine
1363 ;; mouse-set-point, or other commands 1363 ;; `mouse-set-point', or other commands
1364 ;; recognized as defining the point, should 1364 ;; recognized as defining the point, should
1365 ;; not find the on screen keyboard 1365 ;; not find the on screen keyboard
1366 ;; inaccessible even with t-s-d-k enabled. 1366 ;; inaccessible even with
1367 ;; `touch-screen-display-keyboard' enabled.
1367 touch-screen-display-keyboard) 1368 touch-screen-display-keyboard)
1368 (if touch-screen-translate-prompt 1369 (if touch-screen-translate-prompt
1369 ;; Forgo displaying the virtual keyboard 1370 ;; Forgo displaying the virtual keyboard
1370 ;; should touch-screen-translate-prompt be 1371 ;; should `touch-screen-translate-prompt' be
1371 ;; set, for then the key won't be delivered 1372 ;; set, for then the key won't be delivered
1372 ;; to the command loop, but rather to a 1373 ;; to the command loop, but rather to a
1373 ;; caller of read-key-sequence such as 1374 ;; caller of `read-key-sequence' such as
1374 ;; describe-key. 1375 ;; `describe-key'.
1375 (throw 'input-event event) 1376 (throw 'input-event event)
1376 (if (and (or (not buffer-read-only) 1377 (if (and (or (not buffer-read-only)
1377 ;; Display the on screen 1378 ;; Display the on screen