Summary Files Commits Branches @commit @diff @stats
path: root / badwolf.c
diff options
context:
space:
mode:
Commit2425cad5171932d32b96752fc15c608ab3944227 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-06-21 00:00:05 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-06-22 02:49:39 +0200
Files5d734b32f2f104de9447506b7671e2cf3362c570 /badwolf.c
goodwolf-2425cad5171932d32b96752fc15c608ab3944227.tar
goodwolf-2425cad5171932d32b96752fc15c608ab3944227.tar.gz
goodwolf-2425cad5171932d32b96752fc15c608ab3944227.zip
Parentb93b710b012f65adf2dd3c2e0f809b8f0ee070f8 (diff)
Add Alt-n tab switching
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)