]> git.eshelyaron.com Git - emacs.git/commitdiff
Add xwidget-webkit-copy-selection-as-kill to the menu bar
authorPo Lu <luangruo@yahoo.com>
Fri, 5 Nov 2021 11:40:24 +0000 (19:40 +0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Nov 2021 01:59:41 +0000 (02:59 +0100)
* lisp/xwidget.el: New menu item
`xwidget-webkit-copy-selection-as-kill'.

lisp/xwidget.el

index c8a708987878930502c7b121b4da5f92b922dfda..c0e677a194ff6e7ab37cfd2d38ca3b7890b2ca52 100644 (file)
@@ -190,7 +190,10 @@ in `split-window-right' with a new xwidget webkit session."
          :active t
          :style toggle
          :selected xwidget-webkit-edit-mode
-         :help "Send self inserting characters to the WebKit widget"]))
+         :help "Send self inserting characters to the WebKit widget"]
+        ["Save Selection" xwidget-webkit-copy-selection-as-kill
+         :active t
+         :help "Save the browser's selection in the kill ring"]))
 
 (defvar xwidget-webkit-tool-bar-map
   (let ((map (make-sparse-keymap)))