projects
/
platform
/
core
/
uifw
/
at-spi2-atk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2003-04-24 Padraig O'Briain <padraig.obriain@sun.com>
[platform/core/uifw/at-spi2-atk.git]
/
atk-bridge
/
bridge.c
diff --git
a/atk-bridge/bridge.c
b/atk-bridge/bridge.c
index
76e4e0b
..
e5266a0
100644
(file)
--- a/
atk-bridge/bridge.c
+++ b/
atk-bridge/bridge.c
@@
-741,8
+741,14
@@
spi_init_keystroke_from_atk_key_event (Accessibility_DeviceEvent *keystroke,
keystroke->modifiers = (CORBA_unsigned_short) (event->state & 0xFFFF);
if (event->string)
{
keystroke->modifiers = (CORBA_unsigned_short) (event->state & 0xFFFF);
if (event->string)
{
+ gunichar c;
+
keystroke->event_string = CORBA_string_dup (event->string);
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
{
}
else
{