emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58973: closed (tab navigation in EWW misses textarea and select)


From: GNU bug Tracking System
Subject: bug#58973: closed (tab navigation in EWW misses textarea and select)
Date: Thu, 10 Nov 2022 09:48:01 +0000

Your message dated Thu, 10 Nov 2022 11:47:04 +0200
with message-id <83fserrvjb.fsf@gnu.org>
and subject line Re: bug#58973: tab navigation in EWW misses textarea and select
has caused the debbugs.gnu.org bug report #58973,
regarding tab navigation in EWW misses textarea and select
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
58973: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58973
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: tab navigation in EWW misses textarea and select Date: Wed, 02 Nov 2022 22:28:45 +0100
In EWW mode, the function shr-next-link moves to the next active area,
which may be a link or an 'input' tag. To make tab navigation in forms
really operational, it should also stop at 'textarea' and 'select' tags.

Below is my suggested patch.

Hope this helps,
Nicolas

diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 414de931c4..3799ef96e8 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1596,7 +1596,8 @@ eww-tag-textarea
                       (list :eww-form eww-form
                             :value value
                             :type "textarea"
-                            :name (dom-attr dom 'name)))))
+                            :name (dom-attr dom 'name)))
+    (put-text-property start (1+ start) 'shr-tab-stop t)))
 
 (defun eww-tag-input (dom)
   (let ((type (downcase (or (dom-attr dom 'type) "text")))
@@ -1660,7 +1661,8 @@ eww-tag-select
       (add-face-text-property start (point) 'eww-form-select)
       (put-text-property start (point) 'keymap eww-select-map)
       (unless (= start (point))
-       (put-text-property start (1+ start) 'help-echo "select field"))
+       (put-text-property start (1+ start) 'help-echo "select field")
+       (put-text-property start (1+ start) 'shr-tab-stop t))
       (shr-ensure-paragraph))))
 
 (defun eww-select-display (select)



--- End Message ---
--- Begin Message --- Subject: Re: bug#58973: tab navigation in EWW misses textarea and select Date: Thu, 10 Nov 2022 11:47:04 +0200
> From: Nicolas Graner <nicolas@graner.name>
> Cc: 58973@debbugs.gnu.org
> Date: Mon, 07 Nov 2022 15:32:17 +0100
> 
> Sorry for forgetting about this. 
> Try <tab> and <backtab> in this page:
>   http://graner.name/test-form.html

Thanks, I installed the change.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]