aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormutantturkey <mutantturke@gmail.com>2012-10-10 14:00:44 -0400
committermutantturkey <mutantturke@gmail.com>2012-10-10 14:00:44 -0400
commit0b198b3d55bfac2d8166789f5df871a7b54d0dc8 (patch)
treebea01f54334ee4c386b8f2f1c089ddd5f1ffd94b
parent5e010e3e456009e78d8b6301bc6ec468c2bdec62 (diff)
add support for tab switching with the Forward and Backward keys (XF86Forward)
-rw-r--r--svte.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/svte.c b/svte.c
index c078478..3cc4477 100644
--- a/svte.c
+++ b/svte.c
@@ -173,6 +173,16 @@ gboolean event_key(GtkWidget *widget, GdkEventKey *event, window *w) {
return TRUE;
}
}
+
+ if(g == GDK_KEY_Forward) {
+ tab_switch(TRUE, w);
+ return TRUE;
+ }
+
+ if(g == GDK_KEY_Back) {
+ tab_switch(FALSE, w);
+ return TRUE;
+ }
return FALSE;
}