title: how to prevent window from closing on ESC extjs 4
body: <p>I am stuck with one problem with one problem in stop the window from closing using ESC button.</p>
  
  <p>The window gets closed as soon as I click the ESC button from my keyboard. I want the window should not close, <strong>instead it should prompt a message box asking 'YOU REALLY WANTS TO close' with two button yes or cancel</strong></p>
  
  <p>If person click yes button the the window should destroy and else the window should be as it is.</p>
  
  <p>but don't know why the window is getting close on ESC press.</p>
  
  <p>I am prompting message as the user click the esc button using below code</p>
  
  <pre><code>listeners: {
          show : function(win) {
            Ext.create('Ext.util.KeyNav', win.getEl(), {
              "esc" : function(e){
                alert('hi.. closing');
                win.hide();
              },
              scope: win
            });
          }
        }
  </code></pre>
  
  <p>now I want the message box to be appeared and based on the person answer things to be happend.
  any help ??</p>