1. #1
    Ext JS Premium Member
    Join Date
    Dec 2011
    Posts
    8
    Vote Rating
    0
    dopefish is on a distinguished road

      0  

    Default Answered: Keyboard navigation in modal window problem

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,074
    Answers
    3500
    Vote Rating
    854
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You can override the pressing of ESC to close the window by specifying the onEsc function on the Window.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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.

Thread Participants: 1

Tags for this Thread