Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-6945 Admin UI: apply findings of Code Style review
  3. AEROGEAR-6973

Admin UI: adopt lo-autofocus for handling input autofocus and enter/ecs key actions

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Minor 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.

            lfryc Lukáš Fryč (Inactive)
            lfryc Lukáš Fryč (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: