PDA

View Full Version : Ext.Msg.prompt enter triggering ok button.



aCa
25 Nov 2010, 4:12 AM
Is there any way to get the ok button in Ext.Msg.prompt to be triggered by the enter button (or similar buttons on the phones)?

jay@moduscreate.com
25 Nov 2010, 5:07 PM
Is there any way to get the ok button in Ext.Msg.prompt to be triggered by the enter button (or similar buttons on the phones)?

I would look at the browser API for your targeted platforms and see if you can register a key handler on the docbody when the msgbox is shown. Then you can dismiss the msgbox if the enter key is hit.