user1012506 user1012506 - 8 months ago 71
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?




 //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);