orca r3862 - in branches/gnome-2-22: . src/orca/scripts



Author: wwalker
Date: Tue Apr 29 14:50:58 2008
New Revision: 3862
URL: http://svn.gnome.org/viewvc/orca?rev=3862&view=rev

Log:
Fix for bug #517387 - Orca should not read password out in gdm login window


Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/src/orca/scripts/gdmlogin.py

Modified: branches/gnome-2-22/src/orca/scripts/gdmlogin.py
==============================================================================
--- branches/gnome-2-22/src/orca/scripts/gdmlogin.py	(original)
+++ branches/gnome-2-22/src/orca/scripts/gdmlogin.py	Tue Apr 29 14:50:58 2008
@@ -28,6 +28,7 @@
 
 import orca.default as default
 import orca.orca as orca
+import orca.settings as settings
 
 ########################################################################
 #                                                                      #
@@ -59,3 +60,13 @@
             orca.setLocusOfFocus(event, obj)
         else:
             default.Script.onWindowActivated(self, event)
+
+    def activate(self):
+        """Called when this script is activated."""
+        # We disable key echo because gdm reuses the username text
+        # area for the password area and doesn't change the role 
+        # from 'text' to 'password' when doing so.  As a result,
+        # key echo will echo the keys typed when entering a password.
+        # See bug #517387.
+        #
+        settings.enableKeyEcho = False



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]