Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Issue #33: The password field now has focus when the login window is …
…shown.
  • Loading branch information
macourtney committed Aug 2, 2011
1 parent e0a632e commit 44b7501
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/darkexchange/controller/login/login.clj
Expand Up @@ -79,12 +79,17 @@
(defn attach-default-button [login-frame]
(actions-utils/set-default-button login-frame (find-login-button login-frame)))

(defn set-focus [login-frame]
(.requestFocusInWindow (find-password-field login-frame))
login-frame)

(defn attach [login-frame]
(attach-default-button
(attach-cancel-action
(attach-login-action
(attach-new-user-action
(attach-user-add-listener login-frame))))))
(set-focus
(attach-default-button
(attach-cancel-action
(attach-login-action
(attach-new-user-action
(attach-user-add-listener login-frame)))))))

(defn show []
(controller-utils/show (attach (load-data (login-view/create)))))

0 comments on commit 44b7501

Please sign in to comment.