* atk-bridge/bridge.c (spi_init_keystroke_from_atk_key_event):
Set is_text field of Accessibility_DeviceEvent data structure.
* cspi/bonobo/cspi-bonobo-listener.c (cspi_device_event): Set
is-text field of AccessibleDeviceEvent data structure.
This addresses part of bug #108666.
* registryd/devcideeventcontroller.c: Unset debug option.
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@422
e2bd861d-eb25-0410-b326-
f6ed22b6b98c
+2003-04-24 Padraig O'Briain <padraig.obriain@sun.com>
+
+ * atk-bridge/bridge.c (spi_init_keystroke_from_atk_key_event):
+ Set is_text field of Accessibility_DeviceEvent data structure.
+
+ * cspi/bonobo/cspi-bonobo-listener.c (cspi_device_event): Set
+ is-text field of AccessibleDeviceEvent data structure.
+
+ This addresses part of bug #108666.
+
+ * registryd/devcideeventcontroller.c: Unset debug option.
+
2003-04-14 Padraig O'Briain <padraig.obriain@sun.com>
* cspi/accessible.c:
keystroke->modifiers = (CORBA_unsigned_short) (event->state & 0xFFFF);
if (event->string)
{
+ gunichar c;
+
keystroke->event_string = CORBA_string_dup (event->string);
- keystroke->is_text = CORBA_TRUE;
+ c = g_utf8_get_char_validated (event->string, -1);
+ if (c > 0 && g_unichar_isprint (c))
+ keystroke->is_text = CORBA_TRUE;
+ else
+ keystroke->is_text = CORBA_FALSE;
}
else
{
anevent.timestamp = event->timestamp;
anevent.keystring = g_strdup (event->event_string);
anevent.modifiers = event->modifiers;
+ anevent.is_text = event->is_text;
/* FIXME: re-enterancy hazard on this list */
for (l = clistener->callbacks; l; l = l->next)
#undef SPI_XKB_DEBUG
#undef SPI_DEBUG
-#define SPI_KEYEVENT_DEBUG
+#undef SPI_KEYEVENT_DEBUG
#include <string.h>
#include <ctype.h>