diff options
| -rw-r--r-- | doc/emacs/input.texi | 4 | ||||
| -rw-r--r-- | lisp/net/eww.el | 18 | ||||
| -rw-r--r-- | lisp/touch-screen.el | 11 |
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 |
| 129 | checks whether the command is meant to set the point by searching for it | 129 | checks whether the command is meant to set the point by searching for it |
| 130 | in the list @code{touch-screen-set-point-commands}. If it is and the | 130 | in the list @code{touch-screen-set-point-commands}. If it is, and the |
| 131 | text beneath the new point is not read-only, the virtual keyboard is | 131 | text beneath the new point is not read-only, the virtual keyboard is |
| 132 | activated, in anticipation of the user entering text there. | 132 | activated, 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 |
| 135 | the command @code{mouse-set-point} (@pxref{Mouse Commands}), which is | 135 | the 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. |
| 1307 | If `text-conversion-style' is not `action' if point is within the | 1307 | Set `text-conversion-style' to the value `action' if it isn't |
| 1308 | prompt or `nil' otherwise, set it to such a value, so as to | 1308 | already and point is within the prompt field, or if |
| 1309 | guarantee that the input method functions properly for the | 1309 | `text-conversion-style' is `nil', so as to guarantee that |
| 1310 | purpose of typing within the ERC prompt." | 1310 | the input method functions properly for the purpose of typing |
| 1311 | within 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. |
| 1652 | EVENT, if non-nil, is the mouse event that preceded this command." | 1653 | EVENT, if non-nil, is the mouse event that preceded this command. |
| 1654 | Interactively, 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. |
| 1907 | EVENT, if non-nil, is the mouse event that preceded this command." | 1909 | EVENT, if non-nil, is the mouse event that preceded this command. |
| 1910 | Interactively, 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. |
| 1980 | EVENT, if non-nil, is the mouse event that preceded this command." | 1983 | EVENT, if non-nil, is the mouse event that preceded this command. |
| 1984 | Interactively, 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 |