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

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

bug#44247: EWW: backtab is not defined in text and textarea keymaps


From: Nicolas Graner
Subject: bug#44247: EWW: backtab is not defined in text and textarea keymaps
Date: Mon, 26 Oct 2020 23:46:55 +0100

In the main eww-mode-map, the function shr-previous-link is bound to
both \M-\t and backtab (aka shift+tab). However, in the more specific
eww-text-map and eww-textarea-map, that same function is only bound to
\M-\t. This makes the use of backtab inconsistent.

Patch to fix this in emacs 28:

diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 53835bb544..ebc75e0e8a 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1190,6 +1190,7 @@ eww-text-map
     (define-key map [(control e)] 'eww-end-of-text)
     (define-key map [?\t] 'shr-next-link)
     (define-key map [?\M-\t] 'shr-previous-link)
+    (define-key map [backtab] 'shr-previous-link)
     map))
 
 (defvar eww-textarea-map
@@ -1199,6 +1200,7 @@ eww-textarea-map
     (define-key map [(control c) (control c)] 'eww-submit)
     (define-key map [?\t] 'shr-next-link)
     (define-key map [?\M-\t] 'shr-previous-link)
+    (define-key map [backtab] 'shr-previous-link)
     map))
 
 (defvar eww-select-map


--
Nicolas





reply via email to

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