From 5014434b9a83be3eb9a18c73fcc356bfdb900622 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 16 Jul 2013 18:37:48 +0200 Subject: [PATCH] st-button: Recognise all Enter keys as Return Bug #704339. --- 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 56502f17d..755e2c0a8 100644 --- a/src/st/st-button.c +++ b/src/st/st-button.c @@ -267,7 +267,8 @@ st_button_key_press (ClutterActor *actor, { if (event->keyval == CLUTTER_KEY_space || event->keyval == CLUTTER_KEY_Return || - event->keyval == CLUTTER_KEY_KP_Enter) + event->keyval == CLUTTER_KEY_KP_Enter || + event->keyval == CLUTTER_KEY_ISO_Enter) { st_button_press (button, NULL, ST_BUTTON_ONE, NULL); return TRUE; @@ -287,7 +288,8 @@ st_button_key_release (ClutterActor *actor, { if (event->keyval == CLUTTER_KEY_space || event->keyval == CLUTTER_KEY_Return || - event->keyval == CLUTTER_KEY_KP_Enter) + event->keyval == CLUTTER_KEY_KP_Enter || + event->keyval == CLUTTER_KEY_ISO_Enter) { gboolean is_click;