orca r3433 - in trunk: . src/orca
- From: wwalker svn gnome org
 
- To: svn-commits-list gnome org
 
- Subject: orca r3433 - in trunk: . src/orca
 
- Date: Mon,  7 Jan 2008 18:26:05 +0000 (GMT)
 
Author: wwalker
Date: Mon Jan  7 18:26:04 2008
New Revision: 3433
URL: http://svn.gnome.org/viewvc/orca?rev=3433&view=rev
Log:
Fix for bug #507886 - Orca+Space when in Java application presents script summary debug
Modified:
   trunk/ChangeLog
   trunk/src/orca/J2SE-access-bridge.py
Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Mon Jan  7 18:26:04 2008
@@ -1,3 +1,8 @@
+2008-01-07  Willie Walker <william walker sun com>
+
+	* src/orca/J2SE-access-bridge.py: Fix for bug #507886 - Orca+Space
+	  when in Java application presents script summary debug
+
 2008-01-07  Rich Burridge <rich burridge sun com>
 
         * src/orca/scripts/Thunderbird.py:
Modified: trunk/src/orca/J2SE-access-bridge.py
==============================================================================
--- trunk/src/orca/J2SE-access-bridge.py	(original)
+++ trunk/src/orca/J2SE-access-bridge.py	Mon Jan  7 18:26:04 2008
@@ -201,7 +201,20 @@
 
         Returns True if the event is of interest.
         """
+
+        # The Java platform chooses to give us keycodes different from
+        # the native platform keycodes.  So, we hack here by converting
+        # the keysym we get from Java into a keycode.
+
         keysym = keyboardEvent.event_string
+
+        # We need to make sure we have a keysym-like thing.  The space
+        # character is not a keysym, so we convert it into the string,
+        # 'space', which is.
+        #
+        if keysym == " ":
+            keysym = "space"
+
         keyboardEvent.hw_code = keybindings.getKeycode(keysym)
         return default.Script.consumesKeyboardEvent(self, keyboardEvent)
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]