[gedit/wip/correct-tab-switching-keybindings] Ctrl+PgUp/PgDown for tab switching



commit 16462845094c629ca18bd0aba54f4a5958550f60
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Dec 6 16:13:06 2015 +0100

    Ctrl+PgUp/PgDown for tab switching
    
    Ctrl+PgUp and Ctrl+PgDown are the expected keybindings for tab
    switching.
    
    But those keybindings already have actions in GtkTextView and
    GtkScrolledWindow. So disable the keybindings at those places. For
    GtkScrolledWindow, do it only for GeditNotebook descendants.

 gedit/resources/css/gedit-style.css |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gedit/resources/css/gedit-style.css b/gedit/resources/css/gedit-style.css
index 2223e86..ea9f2a3 100644
--- a/gedit/resources/css/gedit-style.css
+++ b/gedit/resources/css/gedit-style.css
@@ -58,3 +58,11 @@ GeditFileBrowserWidget .small-button {
   padding: 2px 4px;
 }
 
+ binding-set TabSwitching {
+  unbind "<Control>Page_Up";
+  unbind "<Control>Page_Down";
+}
+
+GeditView, GeditNotebook GtkScrolledWindow {
+  gtk-key-bindings: TabSwitching;
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]