From 5302cf10a3a839d3aea9618b509b1e41d8b2a192 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 13 Jul 2007 17:30:51 -0400 Subject: [PATCH] add hardcoded key binds back --- openbox/config.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/openbox/config.c b/openbox/config.c index e25d99fe..9bb31070 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -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; -- 2.44.0