aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-10-24 11:01:59 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-10-24 11:01:59 -0400
commitcd88b8ae508cd3cb18533dbaeb6d3621992dee9c (patch)
tree45e36cb4908ab2c32b07d289db6e8b1ea1fe67ce
parent8fe2bdf722333305bdc4108c0a6a651cd17dbf78 (diff)
downloadayatana-ido-cd88b8ae508cd3cb18533dbaeb6d3621992dee9c.tar.gz
ayatana-ido-cd88b8ae508cd3cb18533dbaeb6d3621992dee9c.tar.bz2
ayatana-ido-cd88b8ae508cd3cb18533dbaeb6d3621992dee9c.zip
Also allow using + and - keys to change the slider
-rw-r--r--src/idoscalemenuitem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/idoscalemenuitem.c b/src/idoscalemenuitem.c
index 176d8d7..dff4cb0 100644
--- a/src/idoscalemenuitem.c
+++ b/src/idoscalemenuitem.c
@@ -553,10 +553,14 @@ ido_scale_menu_item_parent_key_press_event (GtkWidget *widget,
switch (event->keyval)
{
case GDK_KEY_Left:
+ case GDK_KEY_minus:
+ case GDK_KEY_KP_Subtract:
GTK_RANGE_GET_CLASS (priv->scale)->move_slider (GTK_RANGE (priv->scale), GTK_SCROLL_STEP_LEFT);
return TRUE;
case GDK_KEY_Right:
+ case GDK_KEY_plus:
+ case GDK_KEY_KP_Add:
GTK_RANGE_GET_CLASS (priv->scale)->move_slider (GTK_RANGE (priv->scale), GTK_SCROLL_STEP_RIGHT);
return TRUE;
}