Skip to main content
prabhusethu
Participant
June 19, 2015
Question

Flex Get CTRL+S and suppress pop-up

  • June 19, 2015
  • 1 reply
  • 1121 views

Hi

I'm working on a Flex application and need to suppress the CTRL+S which pop-up the 'Save' window. I understand that this is a browser event and wish to know how I can capture this event in a way to suppress it and include my custom code?

any inputs please?

This topic has been closed for replies.

1 reply

prabhusethu
Participant
June 19, 2015

i imported the lib "jquery.hotkeys-0.7.9" into index.template.html and called the script as follows:

<script language="JavaScript" type="text/javascript">

     $(document).ready(function()

        {

  $(document).bind('keydown keypress', 'ctrl+s', function(){$('#save').click(); return false;});

     });

</script>

this works ONLY when the page is loaded for teh first time but when i click on the flex item and do a ctrl+s the pop-up is triggered again.....any clues/inputs on how to tackle this?

prabhusethu
Participant
June 19, 2015

It seems that only when the focus is set on the html page this events work if i click on the flex item, say input box, the focus is lost and it is not triggered. how can this be handled? any inputs please?