Skip to content
This repository was archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Make login work without mouse
Browse files Browse the repository at this point in the history
autofocus passphrase field
submit by enter
  • Loading branch information
Vit Stanislav authored and Vit Stanislav committed Mar 2, 2017
1 parent 6689056 commit 48822d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/login/login.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ md-card
md-card-title-text
span.md-title Sign In
md-card-content
form
form(ng-submit='$ctrl.go()')
md-input-container.md-block(md-is-error='$ctrl.valid === 0')
label Enter your passphrase
input(type="{{ $ctrl.show_passphrase ? 'text' : 'password' }}", ng-model='$ctrl.input_passphrase', ng-disabled='$ctrl.random')
input(type="{{ $ctrl.show_passphrase ? 'text' : 'password' }}", ng-model='$ctrl.input_passphrase', ng-disabled='$ctrl.random', autofocus)
md-input-container.md-block
md-checkbox.md-primary(ng-model="$ctrl.show_passphrase", aria-label="Show passphrase") Show passphrase
md-content(layout='row', layout-align='center center')
Expand Down

0 comments on commit 48822d9

Please sign in to comment.