[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56475] trunk/blender/source/blender/ makesrna/intern/rna_wm.c: Fix #35157: export key configuration did not export text input events correctly.

Brecht Van Lommel brechtvanlommel at pandora.be
Thu May 2 21:43:53 CEST 2013


Revision: 56475
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56475
Author:   blendix
Date:     2013-05-02 19:43:52 +0000 (Thu, 02 May 2013)
Log Message:
-----------
Fix #35157: export key configuration did not export text input events correctly.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_wm.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_wm.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_wm.c	2013-05-02 17:55:17 UTC (rev 56474)
+++ trunk/blender/source/blender/makesrna/intern/rna_wm.c	2013-05-02 19:43:52 UTC (rev 56475)
@@ -124,6 +124,11 @@
 	{0, NULL, 0, NULL, NULL}
 };
 
+EnumPropertyItem event_textinput_type_items[] = {
+	{KM_TEXTINPUT, "TEXTINPUT", 0, "Text Input", ""},
+	{0, NULL, 0, NULL, NULL}
+};
+
 EnumPropertyItem event_ndof_type_items[] = {
 	{NDOF_MOTION, "NDOF_MOTION", 0, "Motion", ""},
 	/* buttons on all 3dconnexion devices */
@@ -319,6 +324,8 @@
 	{MEDIAFIRST, "MEDIA_FIRST", 0, "Media First", ""},
 	{MEDIALAST, "MEDIA_LAST", 0, "Media Last", ""},
 	{0, "", 0, NULL, NULL},
+	{KM_TEXTINPUT, "TEXTINPUT", 0, "Text Input", ""},
+	{0, "", 0, NULL, NULL},
 	{WINDEACTIVATE, "WINDOW_DEACTIVATE", 0, "Window Deactivate", ""},
 	{TIMER, "TIMER", 0, "Timer", ""},
 	{TIMER0, "TIMER0", 0, "Timer 0", ""},
@@ -664,6 +671,7 @@
 	if (map_type == KMI_TYPE_TWEAK) return event_tweak_type_items;
 	if (map_type == KMI_TYPE_TIMER) return event_timer_type_items;
 	if (map_type == KMI_TYPE_NDOF) return event_ndof_type_items;
+	if (map_type == KMI_TYPE_TEXTINPUT) return event_textinput_type_items;
 	else return event_type_items;
 }
 




More information about the Bf-blender-cvs mailing list