RE: [Flashcoders] RE: Keyboard accessibility and sliders
> As far as I can see, the only restriction introduced by this > solution is that one cannot navigate through the tabEnabled > controls anymore using the arrow keys. But I believe the TAB > / SHIFT+TAB keys are sufficient for this. They are. This limitation is expected for component-based applications, such as with flex. AWK ___ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: Keyboard accessibility and sliders
I found a quick (and dirty?) fix to this problem: In 'onKeyDown' handler method of my custom slidebar I do Selection.setFocus(this) at the end (surrounded by an if() checking whether the pressed key was one of UP,DOWN,RIGHT,LEFT). This seems to override the default focus associated action for the arrow keys. As far as I can see, the only restriction introduced by this solution is that one cannot navigate through the tabEnabled controls anymore using the arrow keys. But I believe the TAB / SHIFT+TAB keys are sufficient for this. HTH, stefan. On 12/5/06, Dave Wood <[EMAIL PROTECTED]> wrote: Hi Andrew > Basically, once the slider gains focus, you then use keys to > control the > slider position. The tab key moves the focus away from the slider. > > Here's the shortcuts I'd recommend: > Right arrow and up arrow - increment slider (using right and up allows > the slider to be vertical or horizontal with no impact on users) > Left arrow and down arrow - decrement slider > Ctrl+up and Ctrl+right - large increment > Ctrl+down and ctrl+left - large decrement > Home/end - lowest and highest slider positions Makes perfect sense to me. How would you prevent the left/right arrow keys from moving the focus away from the current slider to the next/previous item in tab order? David ___ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: Keyboard accessibility and sliders
Hi Andrew Basically, once the slider gains focus, you then use keys to control the slider position. The tab key moves the focus away from the slider. Here's the shortcuts I'd recommend: Right arrow and up arrow - increment slider (using right and up allows the slider to be vertical or horizontal with no impact on users) Left arrow and down arrow - decrement slider Ctrl+up and Ctrl+right - large increment Ctrl+down and ctrl+left - large decrement Home/end - lowest and highest slider positions Makes perfect sense to me. How would you prevent the left/right arrow keys from moving the focus away from the current slider to the next/previous item in tab order? David ___ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: Keyboard accessibility and sliders
I think you can use onKillFocus and onSetFocus. When onSetFocus. Your key listners always update the current focus scrollbar (e.g. set a reference as currScrollbar) when onSetFocus, currScrollbar=this On 12/5/06, Dave Wood <[EMAIL PROTECTED]> wrote: Hi Dan Thanks for your comments. The use of arrow keys has been requested by the client. I may have to try and talk them out of it. But it makes sense visually - the sliders are arrows pointing left and right, and it's important that the user can slide them as little or as much as they like (constrained only by their extreme left and right limits). My plan was to use left and right arrow keys and a setInterval so they can be moved smoothly and easily. If the choice is to either follow the rules and make it cumbersome, or break the rules make it easy, my choice would be to make it easy for non-mouse users. Just looking for the best way. Thanks David > Standard keyboard accessibility states that the tab and enter key > are the 2 > keys that can be used. ie. These map to switch users keys as > standard. So > what you can do is tab to the slider and then on an enter press the > slider > can increment an amount and so on, until the next tab to the next > acccessible item. You can even mark the increments on the slider if > you > want. > > Your slider will then be accessible to all user including 1 switch > users. > > It is standard that you tab between items and and enter hit does > the item > action. > > Dan M ___ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- /* Bored, sometimes. */ ___ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] RE: Keyboard accessibility and sliders
> > Standard keyboard accessibility states that the tab and > enter key are > > the 2 keys that can be used. ie. These map to switch users keys as > > standard. So what you can do is tab to the slider and then > on an enter > > press the slider can increment an amount and so on, until > the next tab That's not how I'd envision the use. The Microsoft reference for the slider has the basics, as does the IBM/JFC reference. We do most of this with the Flex slider http://msdn.microsoft.com/library/en-us/dnwue/html/ch08c.asp http://www-03.ibm.com/able/guidelines/java/jfckeys95.html Basically, once the slider gains focus, you then use keys to control the slider position. The tab key moves the focus away from the slider. Here's the shortcuts I'd recommend: Right arrow and up arrow - increment slider (using right and up allows the slider to be vertical or horizontal with no impact on users) Left arrow and down arrow - decrement slider Ctrl+up and Ctrl+right - large increment Ctrl+down and ctrl+left - large decrement Home/end - lowest and highest slider positions Hope this helps, AWK Andrew Kirkpatrick Corporate Accessibility Engineering Lead Adobe Systems [EMAIL PROTECTED] ___ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] RE: Keyboard accessibility and sliders
Hi Dan Thanks for your comments. The use of arrow keys has been requested by the client. I may have to try and talk them out of it. But it makes sense visually - the sliders are arrows pointing left and right, and it's important that the user can slide them as little or as much as they like (constrained only by their extreme left and right limits). My plan was to use left and right arrow keys and a setInterval so they can be moved smoothly and easily. If the choice is to either follow the rules and make it cumbersome, or break the rules make it easy, my choice would be to make it easy for non-mouse users. Just looking for the best way. Thanks David Standard keyboard accessibility states that the tab and enter key are the 2 keys that can be used. ie. These map to switch users keys as standard. So what you can do is tab to the slider and then on an enter press the slider can increment an amount and so on, until the next tab to the next acccessible item. You can even mark the increments on the slider if you want. Your slider will then be accessible to all user including 1 switch users. It is standard that you tab between items and and enter hit does the item action. Dan M ___ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

