Skip to content

Commit

Permalink
Merge pull request #128 from yast/proper_focus_casp
Browse files Browse the repository at this point in the history
Proper focus casp
  • Loading branch information
jreidinger committed Dec 2, 2016
2 parents 29fe7d5 + 00f2b7b commit f760bdc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
9 changes: 8 additions & 1 deletion package/yast2-users.changes
@@ -1,9 +1,16 @@
-------------------------------------------------------------------
Fri Dec 2 12:58:58 UTC 2016 - jreidinger@suse.com

- Set the focus to the first password field to keep the same
behavior as before the last change. (for FATE#321754)
- 3.1.57.3

-------------------------------------------------------------------
Thu Dec 1 09:41:59 UTC 2016 - jreidinger@suse.com

- prepare reusable widget for setting root password
(needed for FATE#321754)
- 3.2.5
- 3.1.57.2

-------------------------------------------------------------------
Tue Oct 11 12:10:21 UTC 2016 - hguo@suse.com
Expand Down
2 changes: 1 addition & 1 deletion package/yast2-users.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-users
Version: 3.1.57.2
Version: 3.1.57.3
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
3 changes: 3 additions & 0 deletions src/lib/users/widgets.rb
Expand Up @@ -60,6 +60,9 @@ def contents
end

def init
# focus on first password, so user can immediately write. Also does not
# break openQA current test
Yast::UI.SetFocus(Id(:pw1))
current_password = Yast::UsersSimple.GetRootPassword
return if !current_password || current_password.empty?

Expand Down

0 comments on commit f760bdc

Please sign in to comment.