user1012506 user1012506 -5 years ago 224
Javascript Question

Avoide escape key from inputText component in adf

I have a task-flow project, and there is a fragment page (jsff) that open
like a popup (defined in the task-flow).
I want to avoid the ESCAPE option, and I tried in javaScript function but it's work nice, but not for input component (inputText, inputDate etc).
I don't want alerts in the functions, it's work

Can I control this ESCAPE key?


Answer Source


 //listen to the ESC key press and call the exitbutton action
      window.onkeyup = function (e) {
          if (e.keyCode == 27) {
              var button = AdfPage.PAGE.findComponentByAbsoluteId('exitButton');
              AdfActionEvent.queue(button, true);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download