From: Po Lu Date: Fri, 5 Nov 2021 07:12:32 +0000 (+0800) Subject: Allow enabling xwidget-webkit-edit-mode via a binding X-Git-Tag: emacs-29.0.90~3671^2~141 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8ddeebbe0ce83575d92f1e8be675cc754ca53c02;p=emacs.git 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. --- 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)