[gnome-builder/wip/chergert/shortcuts] shortcuts: make default shortcuts match up



commit 2febfea5e62de2fdb6f4a9f3493a414061c88022
Author: Christian Hergert <christian hergert me>
Date:   Mon Aug 31 00:02:16 2015 -0700

    shortcuts: make default shortcuts match up
    
    This should match gedit much better for our defaults.

 data/keybindings/default.css |    8 ++++----
 data/keybindings/vim.css     |    8 ++++----
 src/app/gb-application.c     |    2 ++
 3 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/data/keybindings/default.css b/data/keybindings/default.css
index 2563d71..4d8916f 100644
--- a/data/keybindings/default.css
+++ b/data/keybindings/default.css
@@ -22,10 +22,10 @@
   bind "<ctrl>0" { "reset-font-size" () };
 
   /* cycle "tabs" */
-  bind "<ctrl>Page_Up" { "action" ("view-stack", "previous-view", "") };
-  bind "<ctrl>KP_Page_Up" { "action" ("view-stack", "previous-view", "") };
-  bind "<ctrl>Page_Down" { "action" ("view-stack", "next-view", "") };
-  bind "<ctrl>KP_Page_Down" { "action" ("view-stack", "next-view", "") };
+  bind "<ctrl><alt>Page_Up" { "action" ("view-stack", "previous-view", "") };
+  bind "<ctrl><alt>KP_Page_Up" { "action" ("view-stack", "previous-view", "") };
+  bind "<ctrl><alt>Page_Down" { "action" ("view-stack", "next-view", "") };
+  bind "<ctrl><alt>KP_Page_Down" { "action" ("view-stack", "next-view", "") };
 
   bind "F2" { "clear-selection" ()
               "movement" (previous-word-end, 0, 1, 1)
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index c1fb276..572e271 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -141,10 +141,10 @@
   bind "colon" { "action" ("win", "show-command-bar", "") };
 
   /* cycle "tabs" */
-  bind "<ctrl>Page_Up" { "action" ("view-stack", "previous-view", "") };
-  bind "<ctrl>KP_Page_Up" { "action" ("view-stack", "previous-view", "") };
-  bind "<ctrl>Page_Down" { "action" ("view-stack", "next-view", "") };
-  bind "<ctrl>KP_Page_Down" { "action" ("view-stack", "next-view", "") };
+  bind "<ctrl><alt>Page_Up" { "action" ("view-stack", "previous-view", "") };
+  bind "<ctrl><alt>KP_Page_Up" { "action" ("view-stack", "previous-view", "") };
+  bind "<ctrl><alt>Page_Down" { "action" ("view-stack", "next-view", "") };
+  bind "<ctrl><alt>KP_Page_Down" { "action" ("view-stack", "next-view", "") };
 
   /* replay the last recording */
   bind "period" { "replay-macro" (1) };
diff --git a/src/app/gb-application.c b/src/app/gb-application.c
index b5af586..d4adad5 100644
--- a/src/app/gb-application.c
+++ b/src/app/gb-application.c
@@ -143,6 +143,8 @@ gb_application_load_keybindings (GbApplication *self)
     { "workbench.global-search", "<ctrl>period" },
     { "app.preferences", "<ctrl>comma" },
     { "app.shortcuts", "<ctrl>question" },
+    { "workbench.new-document", "<ctrl>n" },
+    { "workbench.open-document", "<ctrl>o" },
     { NULL }
   };
   gsize i;


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