Results 1 to 2 of 2

Thread: Keyboard navigation in modal window problem

  1. #1
    Ext JS Premium Member
    Join Date
    Dec 2011
    Posts
    8
    Vote Rating
    0
      0  

    Default Answered: Keyboard navigation in modal window problem

    Hi all,

    Doing some accessibility review of basic ExtJS widgets and I've run into a problem with modal windows. If my modal window has nested elements (for instance a toolbar with several buttons), I find myself in a sort of keyboard trap when I navigate into those nested elements. When the window is opened, it receives focus, ENTER focuses the first child element (seemingly the heading), then TAB navigates among whatever other primary elements I've added. So I TAB to my toolbar, press ENTER to activate it and TAB again to select a button. Let's say I change my mind, or didn't mean to activate the toolbar. In a normal panel, ESC would navigate me back up to the immediate parent (the toolbar container in this case) but with a modal window, ESC closes the window. Am I missing an alternative keyboard combination to navigate up? (FF8, ExtJS 4.0.7, with and w/o NVDA 2011.2)

    Thanks for any assistance!

  2. You can override the pressing of ESC to close the window by specifying the onEsc function on the Window.

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Answers
    3884
    Vote Rating
    1297
      0  

    Default

    You can override the pressing of ESC to close the window by specifying the onEsc function on the Window.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •