src/project/FileTreeView.js
function (e) {
            if (e.keyCode === KeyEvent.DOM_VK_ESCAPE) {
                this.props.actions.cancelRename();
            } else if (e.keyCode === KeyEvent.DOM_VK_RETURN) {
                this.props.actions.performRename();
            }
        }
function (e) {
            if (e.keyCode === KeyEvent.DOM_VK_ESCAPE) {
                this.props.actions.cancelRename();
            } else if (e.keyCode === KeyEvent.DOM_VK_RETURN) {
                this.props.actions.performRename();
            }
        }
function ( e ) { if ( e . keyCode === KeyEvent . DOM_VK_ESCAPE ) { this . props . actions . cancelRename ( ) ; } else if ( e . keyCode === KeyEvent . DOM_VK_RETURN ) { this . props . actions . performRename ( ) ; } }
If the user presses enter or escape, we either successfully complete or cancel, respectively,
the rename or create operation that is underway.
If the user presses enter or escape we either successfully complete or cancel respectively the rename or create operation that is underway .