[PATCH] Do not have password fields with contents grab focus (#959463).
Chris Lumens
clumens at redhat.com
Fri May 3 18:37:55 UTC 2013
---
pyanaconda/ui/gui/spokes/password.py | 5 -----
pyanaconda/ui/gui/spokes/user.py | 1 -
2 files changed, 6 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/password.py b/pyanaconda/ui/gui/spokes/password.py
index ff029ea..1653dc2 100644
--- a/pyanaconda/ui/gui/spokes/password.py
+++ b/pyanaconda/ui/gui/spokes/password.py
@@ -62,10 +62,6 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke):
self.pw.set_placeholder_text(_("The password was set by kickstart."))
self.confirm.set_placeholder_text(_("The password was set by kickstart."))
- def refresh(self):
-# self.setCapsLockLabel()
- self.pw.grab_focus()
-
# Caps lock detection isn't hooked up right now
# def setCapsLockLabel(self):
# if isCapsLockEnabled():
@@ -150,5 +146,4 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke):
else:
self.clear_info()
self.set_warning(self._error)
- self.pw.grab_focus()
self.window.show_all()
diff --git a/pyanaconda/ui/gui/spokes/user.py b/pyanaconda/ui/gui/spokes/user.py
index 2c9cd1b..7fd65e6 100644
--- a/pyanaconda/ui/gui/spokes/user.py
+++ b/pyanaconda/ui/gui/spokes/user.py
@@ -449,6 +449,5 @@ class UserSpoke(FirstbootSpokeMixIn, NormalSpoke):
else:
self.clear_info()
self.set_warning(self._error)
- self.pw.grab_focus()
self.window.show_all()
--
1.8.1.2
More information about the anaconda-patches
mailing list