src/search/FindBar.js
function _handleKeydown(e) {
            if (e.keyCode === KeyEvent.DOM_VK_ESCAPE) {
                e.stopPropagation();
                e.preventDefault();
                self.close();
            }
        }
function _handleKeydown(e) {
            if (e.keyCode === KeyEvent.DOM_VK_ESCAPE) {
                e.stopPropagation();
                e.preventDefault();
                self.close();
            }
        }
function _handleKeydown ( e ) { if ( e . keyCode === KeyEvent . DOM_VK_ESCAPE ) { e . stopPropagation ( ) ; e . preventDefault ( ) ; self . close ( ) ; } }
Done this way because ModalBar.js seems to react unreliably when modifying it to handle the escape key - the findbar wasn't getting closed as it should, instead persisting in the background
Done this way because ModalBar . js seems to react unreliably when modifying it to handle the escape key - the findbar wasn t getting closed as it should instead persisting in the background