From 5b8abe680963f8a7c0923c3fe968325633621464 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 20 Mar 2012 09:50:59 -0400 Subject: [PATCH] st-button: treat keypad Enter keypresses like normal Enter events Not doing this makes some widgets inconsistent, such as the user list in the GDM login dialog. https://bugzilla.gnome.org/show_bug.cgi?id=672471 --- src/st/st-button.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/st/st-button.c b/src/st/st-button.c index fedaebf23..a4edbe75a 100644 --- a/src/st/st-button.c +++ b/src/st/st-button.c @@ -210,7 +210,8 @@ st_button_key_press (ClutterActor *actor, if (button->priv->button_mask & ST_BUTTON_ONE) { if (event->keyval == CLUTTER_KEY_space || - event->keyval == CLUTTER_KEY_Return) + event->keyval == CLUTTER_KEY_Return || + event->keyval == CLUTTER_KEY_KP_Enter) { st_button_press (button, ST_BUTTON_ONE); return TRUE; @@ -229,7 +230,8 @@ st_button_key_release (ClutterActor *actor, if (button->priv->button_mask & ST_BUTTON_ONE) { if (event->keyval == CLUTTER_KEY_space || - event->keyval == CLUTTER_KEY_Return) + event->keyval == CLUTTER_KEY_Return || + event->keyval == CLUTTER_KEY_KP_Enter) { gboolean is_click;