Skip to Content
Menu
This question has been flagged
1 Reply
3026 Views

i want to know how OK button on warning error message should enabled by default to close on single enter key for user, if not possible then close it on Esc press.

Now its working when i press the tab key twice,the focus will come on OK button and if then i press the enter key it will close.



Avatar
Discard
Best Answer

Hi,

You can check all functionalities of dialogues in 'web.Dialog' js file in "openerp/addons/web/static/src/js/framework/dialog.js".

Another File you need to refer is 'web.CrashManager' js in "openerp/addons/web/static/src/js/framework/crash_manager.js"
In these files defined the warning,error messages confirm,close,destroy functionalities.
Please have a look.

Cheers !

Avatar
Discard