PDA

View Full Version : Accelerators for alert/confirm/etc



djMax
3 Aug 2007, 12:39 PM
I see that ESC is bound as an accelerator on alert/confirm, but Y and N are not, and also Tab doesn't cycle between JUST the two buttons. Should we fix this? If I were to add my own key map, will that automatically remove itself when the dialog goes away?

evant
3 Aug 2007, 2:57 PM
I've extended Ext to bind y & n while a confirm is active. The code is quite simple, you literally just bind the keymaps before showing the confirm, then get rid of them just after you hide it.

matjaz
4 Aug 2007, 2:10 AM
evant it would be nice if you share the code with others :)