]> git.eshelyaron.com Git - emacs.git/commitdiff
xwidget: Map "previous-line" and "next-line" to scroll
authorRicardo Wurmus <rekado@elephly.net>
Wed, 26 Oct 2016 06:00:35 +0000 (23:00 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 26 Oct 2016 06:07:13 +0000 (23:07 -0700)
* lisp/xwidget.el: Map "previous-line" and "next-line" to scrolling
procedures.

lisp/xwidget.el

index 8aa05844e26ddf7f300e93daaabc93bf35351d39..6443954824c866e25487e9a36acd18118c006a2e 100644 (file)
@@ -124,8 +124,8 @@ Interactively, URL defaults to the string looking like a url around point."
     (define-key map [remap backward-char]       'xwidget-webkit-scroll-backward)
     (define-key map [remap right-char]          'xwidget-webkit-scroll-forward)
     (define-key map [remap left-char]           'xwidget-webkit-scroll-backward)
-    ;; (define-key map [remap previous-line]          'image-previous-line)
-    ;; (define-key map [remap next-line]              'image-next-line)
+    (define-key map [remap previous-line]       'xwidget-webkit-scroll-down)
+    (define-key map [remap next-line]           'xwidget-webkit-scroll-up)
 
     ;; (define-key map [remap move-beginning-of-line] 'image-bol)
     ;; (define-key map [remap move-end-of-line]       'image-eol)