Summary Files Commits Branches @commit @diff @stats
path: root / badwolf.c
diff options
context:
space:
mode:
1 files changed, 4 insertions, 1 deletions
-rw-r--r--badwolf.c5
diff --git a/badwolf.c b/badwolf.c
index f512ba3..70306da 100644
--- a/badwolf.c
+++ b/badwolf.c
@@ -213,13 +213,16 @@ commonCb_key_press_event(struct Window *window, GdkEvent *event, struct Client *
}
}
- if((((GdkEventKey *)event)->state & GDK_MOD1_MASK) && browser != NULL)
+ if((((GdkEventKey *)event)->state & GDK_MOD1_MASK))
{
switch(((GdkEventKey *)event)->keyval)
{
case GDK_KEY_Left: gtk_notebook_prev_page(notebook); return TRUE;
case GDK_KEY_Right: gtk_notebook_next_page(notebook); return TRUE;
}
+ if((((GdkEventKey *)event)->keyval >= GDK_KEY_0) &&
+ (((GdkEventKey *)event)->keyval <= GDK_KEY_9))
+ gtk_notebook_set_current_page(notebook, (((GdkEventKey *)event)->keyval - GDK_KEY_1));
}
if(browser != NULL)