Re: [patch]: bind Ctrl-{PageUp, PageDown} to {left, right}-tab

Jeremy Henty <onepoint-YprzHiG/[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
Bump!  It's a simple patch that should be easy to review.

Regards,

Jeremy Henty


Jeremy Henty wrote:
> 
> Another case of "let's be like the other browsers".  See:
> 
>     http://www.google.com/support/forum/p/Chrome/thread?tid=16c23e5647c48367&hl=en
> 
> This will require an update to the help page on the web site.
> 
> Congratulations on the keysrc code, it was very easy to understand and
> modify.
> 
> Next I  was going to look at  binding Ctrl-[1-8] to "go  to the <n>-th
> tab" and Ctrl-9  to "go to the rightmost tab" for  the same reasons as
> this patch - the other browsers do it.  Comments?
> 
> Regards,
> 
> Jeremy Henty

_______________________________________________
Dillo-dev mailing list
[email protected]
http://lists.auriga.wearlab.de/cgi-bin/mailman/listinfo/dillo-dev
bind-ctrl-pageup-pagedown (text/plain, 2.3 KB)
# HG changeset patch
# Parent 0ed26f63a777c09cbc5df1a8ec6aa9e569218ee0
Bind Ctrl-{PageUp,PageDown} to tab-{previous,next}.

diff -r 0ed26f63a777 doc/user_help.html
--- a/doc/user_help.html	Wed Oct 19 19:05:31 2011 +0100
+++ b/doc/user_help.html	Wed Oct 19 19:49:52 2011 +0100
@@ -308,8 +308,10 @@
 <tr><td>Back       or "<b>,</b>"   <td><               <td>previous page
 <tr><td>Shift-Back or "<b>.</b>"   <td>>               <td>next page
 <tr><td>Alt-F                      <td>File            <td>file menu
-<tr><td>Ctrl-TabKey                <td>TabKey          <td>Next tab
-<tr><td>Ctrl-Shift-TabKey          <td>TabKey          <td>Previous tab
+<tr><td>Ctrl-TabKey       or
+        Ctrl-PageDown              <td>TabKey          <td>Next tab
+<tr><td>Ctrl-Shift-TabKey or
+        Ctrl-PageUp                <td>TabKey          <td>Previous tab
 <tr><td>Esc                        <td>escape          <td>close dialog,
                                                            close findbar,<br>
                                                      Hide/show control panels
diff -r 0ed26f63a777 src/keys.cc
--- a/src/keys.cc	Wed Oct 19 19:05:31 2011 +0100
+++ b/src/keys.cc	Wed Oct 19 19:49:52 2011 +0100
@@ -103,7 +103,9 @@
    { "new-tab"      , KEYS_NEW_TAB      , FL_CTRL   , 't'             },
    { "left-tab"     , KEYS_LEFT_TAB     , FL_CTRL |
                                           FL_SHIFT  , FL_Tab          },
+   { "left-tab"     , KEYS_LEFT_TAB     , FL_CTRL   , FL_Page_Up      },
    { "right-tab"    , KEYS_RIGHT_TAB    , FL_CTRL   , FL_Tab          },
+   { "right-tab"    , KEYS_RIGHT_TAB    , FL_CTRL   , FL_Page_Down    },
    { "close-tab"    , KEYS_CLOSE_TAB    , FL_CTRL   , 'w'             },
    { "find"         , KEYS_FIND         , FL_CTRL   , 'f'             },
    { "websearch"    , KEYS_WEBSEARCH    , FL_CTRL   , 's'             },
diff -r 0ed26f63a777 src/keysrc
--- a/src/keysrc	Wed Oct 19 19:05:31 2011 +0100
+++ b/src/keysrc	Wed Oct 19 19:49:52 2011 +0100
@@ -40,7 +40,9 @@
 
 # "left-tab" and "right-tab" switch to the left/right of the current tab.
 # <ctrl><shift>tab = left-tab
+# <ctrl>PageUp = left-tab
 # <ctrl>tab = right-tab
+# <ctrl>PageDown = right-tab
 
 # "back" and "forward" move back/forward through the browser history.
 #backspace = back
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.