[maemo-commits] [maemo-commits] r14521 - in projects/haf/trunk/hildon-input-method-framework: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Fri Oct 19 13:35:37 EEST 2007
Author: tjunnone
Date: 2007-10-19 13:35:35 +0300 (Fri, 19 Oct 2007)
New Revision: 14521

Modified:
   projects/haf/trunk/hildon-input-method-framework/ChangeLog
   projects/haf/trunk/hildon-input-method-framework/src/hildon-im-context.c
Log:
2007-10-19  Tomas Junnonen  <tomas.junnonen at nokia.com>

        * src/hildon-im-context.c: Always send Return/Enter to the IM,
          even if the key event activated the widget or moved the focus.
          Fixes NB#71497.


Modified: projects/haf/trunk/hildon-input-method-framework/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-input-method-framework/ChangeLog	2007-10-19 10:18:23 UTC (rev 14520)
+++ projects/haf/trunk/hildon-input-method-framework/ChangeLog	2007-10-19 10:35:35 UTC (rev 14521)
@@ -1,3 +1,9 @@
+2007-10-19  Tomas Junnonen  <tomas.junnonen at nokia.com>
+
+	* src/hildon-im-context.c: Always send Return/Enter to the IM,
+	  even if the key event activated the widget or moved the focus.
+	  Fixes NB#71497.
+
 2007-09-28  Tomas Junnonen  <tomas.junnonen at nokia.com>
 
 	* src/hildon-im-context.c: Applied patch by Mohammad Anwari:

Modified: projects/haf/trunk/hildon-input-method-framework/src/hildon-im-context.c
===================================================================
--- projects/haf/trunk/hildon-input-method-framework/src/hildon-im-context.c	2007-10-19 10:18:23 UTC (rev 14520)
+++ projects/haf/trunk/hildon-input-method-framework/src/hildon-im-context.c	2007-10-19 10:35:35 UTC (rev 14521)
@@ -1431,6 +1431,9 @@
       event->keyval == GDK_KP_Enter ||
       event->keyval == GDK_ISO_Enter)
   {
+    hildon_im_context_send_key_event(self, event->type, event->state,
+                                     event->keyval, event->hardware_keycode);
+
     /* Enter advances focus as if tab was pressed */
     if (event->keyval == GDK_KP_Enter || event->keyval == GDK_ISO_Enter)
     {
@@ -1452,7 +1455,6 @@
       return FALSE;
     }
 
-    hildon_im_context_send_key_event(self, event->type, event->state, event->keyval, event->hardware_keycode);
     /* Stop both press and release events so they aren't sent to the application. */
     return TRUE;
   }


More information about the maemo-commits mailing list