-
Sub-task
-
Resolution: Done
-
Minor
-
None
-
None
-
None
-
None
We currently use autofocus implemented here:
https://github.com/aerogear/aerogear-unifiedpush-server/blob/f2c5a5d7d834cc74e4a66bcb966437d2de68981d/admin-ui/app/scripts/ui/bootstrap-customization.js#L22
But our approach does not handle enter/esc keystrokes.
We should adopt lo-autofocus directive from liveoak and possibly generalize it in form of angular-patternfly directive.
We use our custom directive lo-autofocus for the 1st input in modals.
Right after the modal pops-up, user has the focus on the first input and
pressing enter submits the modal.