Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #10648 from MarcelGerber/rename-no-cut-off
Browse files Browse the repository at this point in the history
Don't cut off parts of the new name when renaming
  • Loading branch information
prksingh committed Mar 6, 2015
2 parents 0ef8d66 + 0b79d6f commit c4e83a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/project/FileTreeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ define(function (require, exports, module) {
* The rename or create operation can be completed or canceled by actions outside of
* this component, so we keep the model up to date by sending every update via an action.
*/
handleKeyUp: function (e) {
handleInput: function (e) {
this.props.actions.setRenameValue(this.refs.name.getDOMNode().value.trim());

if (e.keyCode !== KeyEvent.DOM_VK_LEFT &&
Expand Down Expand Up @@ -194,7 +194,7 @@ define(function (require, exports, module) {
defaultValue: this.props.name,
autoFocus: true,
onKeyDown: this.handleKeyDown,
onKeyUp: this.handleKeyUp,
onInput: this.handleInput,
onClick: this.handleClick,
onBlur: this.handleBlur,
style: {
Expand Down Expand Up @@ -565,7 +565,7 @@ define(function (require, exports, module) {
defaultValue: this.props.name,
autoFocus: true,
onKeyDown: this.handleKeyDown,
onKeyUp: this.handleKeyUp,
onInput: this.handleInput,
onBlur: this.handleBlur,
style: {
width: width
Expand Down

0 comments on commit c4e83a6

Please sign in to comment.