Hi,
To correctly handle key events sent by the ecore_x_test_fake_key_press
function, Ecore_X has to handle X MappingNotify events. Otherwise,
utf8 chars not mapped to simple keycodes won't be received correctly,
since ecore_x_test_fake_key_press remaps the keymap to send arbitrary
strings. Handling of these events is real simple, as per the attached
patch. With this patch, the Illume keyboard can correctly input any
utf8 character to for example the Elementary entry widget, which would
otherwise result in lost characters.
Best regards,
Olof Sjöbergh
Index: ecore/src/lib/ecore_x/xlib/ecore_x_events.c
===================================================================
--- ecore/src/lib/ecore_x/xlib/ecore_x_events.c (revision 39016)
+++ ecore/src/lib/ecore_x/xlib/ecore_x_events.c (working copy)
@@ -1819,10 +1819,11 @@ _ecore_x_event_handle_client_message(XEvent *xeven
}
void
-_ecore_x_event_handle_mapping_notify(XEvent *xevent __UNUSED__)
+_ecore_x_event_handle_mapping_notify(XEvent *xevent)
{
_ecore_x_last_event_mouse_move = 0;
- /* FIXME: handle this event type */
+
+ XRefreshKeyboardMapping((XMappingEvent *)xevent);
}
void
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel