PDA

View Full Version : Keyboard support in MessageBox



damluar
22 Aug 2014, 6:48 AM
Hello, I'm using MessageBox to show popups and I noticed that they don't respond on keyboard events. I would expect that the focus goes from one button to another, when I press left or right arrow. Is it possible to implement? Thanks.

Gary Schlosberg
23 Aug 2014, 8:52 AM
Switching between buttons of a messagebox can be achieved using the tab key. Is it a requirement to use the arrow keys?

damluar
25 Aug 2014, 12:23 AM
Yes, it's kind of requirement. I try to implement it adding my own keydown handler on the dialog, but with small success so far. Is it possible?

Gary Schlosberg
25 Aug 2014, 9:33 AM
I noticed that arrows key navigation on the messagebox work out of the box in ExtJS 5.x.
https://fiddle.sencha.com/#fiddle/9dh