From 8ddeebbe0ce83575d92f1e8be675cc754ca53c02 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 5 Nov 2021 15:12:32 +0800 Subject: [PATCH] Allow enabling xwidget-webkit-edit-mode via a binding * doc/emacs/misc.texi: Document changes. * lisp/xwidget.el (xwidget-webkit-mode-map): Add shortcut for xwidget-webkit-edit-mode. --- doc/emacs/misc.texi | 3 +++ lisp/xwidget.el | 1 + 2 files changed, 4 insertions(+) diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index daed242da12..96f8aa9ded6 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi @@ -2961,6 +2961,9 @@ make those characters and other common editing keys insert themselves when pressed, you can enable @code{xwidget-webkit-edit-mode}, which redefines them to be passed through to the WebKit xwidget. +You can also enable @code{xwidget-webkit-edit-mode} by typing @kbd{e} +inside the xwidget webkit buffer. + @node Browse-URL @subsection Following URLs @cindex World Wide Web diff --git a/lisp/xwidget.el b/lisp/xwidget.el index babab63d74f..a43ee7be3c2 100644 --- a/lisp/xwidget.el +++ b/lisp/xwidget.el @@ -146,6 +146,7 @@ in `split-window-right' with a new xwidget webkit session." (define-key map "w" 'xwidget-webkit-current-url) (define-key map "+" 'xwidget-webkit-zoom-in) (define-key map "-" 'xwidget-webkit-zoom-out) + (define-key map "e" 'xwidget-webkit-edit-mode) ;;similar to image mode bindings (define-key map (kbd "SPC") 'xwidget-webkit-scroll-up) -- 2.39.5