This question has been flagged
2 Replies
5611 Views

HI guys

I want to prevent close a wizard when the user press the Escape Key

Do you have an ideia?

Best Regards

---------------------------------------------------------------

How can I call the javascript on he python file and where can I put the javascript function?

Sorry I dont work with javascript and I dont know how to do it to work.

Can you explain a little bit more? 

 

Avatar
Discard
Best Answer

In custom module using java script  you can acheive this functionality.

KeyCode for Escape Key is 27

Reload code in javascript

instance.web.Reload(parent, action)

Refer the Apps Module "web_keyboard_shortcut"


 

Avatar
Discard