add hardcoded key binds back
This commit is contained in:
parent
4dbce5e505
commit
5302cf10a3
1 changed files with 17 additions and 0 deletions
|
@ -782,6 +782,21 @@ typedef struct
|
||||||
const gchar *actname;
|
const gchar *actname;
|
||||||
} ObDefKeyBind;
|
} 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
|
typedef struct
|
||||||
{
|
{
|
||||||
const gchar *button;
|
const gchar *button;
|
||||||
|
@ -913,6 +928,8 @@ void config_startup(ObParseInst *i)
|
||||||
translate_key("C-g", &config_keyboard_reset_state,
|
translate_key("C-g", &config_keyboard_reset_state,
|
||||||
&config_keyboard_reset_keycode);
|
&config_keyboard_reset_keycode);
|
||||||
|
|
||||||
|
void bind_default_keyboard()
|
||||||
|
|
||||||
parse_register(i, "keyboard", parse_keyboard, NULL);
|
parse_register(i, "keyboard", parse_keyboard, NULL);
|
||||||
|
|
||||||
config_mouse_threshold = 8;
|
config_mouse_threshold = 8;
|
||||||
|
|
Loading…
Reference in a new issue