]> Dogcows Code - chaz/openbox/commitdiff
add hardcoded key binds back
authorDana Jansens <danakj@orodu.net>
Fri, 13 Jul 2007 21:30:51 +0000 (17:30 -0400)
committerDana Jansens <danakj@orodu.net>
Fri, 13 Jul 2007 21:30:51 +0000 (17:30 -0400)
openbox/config.c

index e25d99fe69ba5601d917860041b8f739bfa03400..9bb31070a720413187e7c9c2248ca7555f8e49b3 100644 (file)
@@ -782,6 +782,21 @@ typedef struct
     const gchar *actname;
 } ObDefKeyBind;
 
+static void bind_default_keyboard()
+{
+    ObDefKeyBind *it;
+    ObDefKeyBind binds[] = {
+        { "A-Tab", "NextWindow" },
+        { "S-A-Tab", "PreviousWindow" },
+        { "A-F4", "Close" },
+        { NULL, NULL }
+    };
+    for (it = binds; it->key; ++it) {
+        GList *l = g_list_append(NULL, g_strdup(it->key));
+        keyboard_bind(l, actions_parse_string(it->actname));
+    }
+}
+
 typedef struct
 {
     const gchar *button;
@@ -913,6 +928,8 @@ void config_startup(ObParseInst *i)
     translate_key("C-g", &config_keyboard_reset_state,
                   &config_keyboard_reset_keycode);
 
+    void bind_default_keyboard()
+
     parse_register(i, "keyboard", parse_keyboard, NULL);
 
     config_mouse_threshold = 8;
This page took 0.024228 seconds and 4 git commands to generate.