unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44247: EWW: backtab is not defined in text and textarea keymaps
@ 2020-10-26 22:46 Nicolas Graner
  2020-10-27  7:15 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Graner @ 2020-10-26 22:46 UTC (permalink / raw)
  To: 44247

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





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#44247: EWW: backtab is not defined in text and textarea keymaps
  2020-10-26 22:46 bug#44247: EWW: backtab is not defined in text and textarea keymaps Nicolas Graner
@ 2020-10-27  7:15 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-27  7:15 UTC (permalink / raw)
  To: Nicolas Graner; +Cc: 44247

Nicolas Graner <nicolas@graner.name> writes:

> 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:

Thanks; applied to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-27  7:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-26 22:46 bug#44247: EWW: backtab is not defined in text and textarea keymaps Nicolas Graner
2020-10-27  7:15 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).