Skip to content

Commit

Permalink
Merge pull request #1221 from ajaxorg/quit_drag_on_esc
Browse files Browse the repository at this point in the history
* quite drag on esc
  • Loading branch information
Zef Hemel committed Apr 4, 2012
2 parents 4e985d8 + 5d532e6 commit 9bf6710
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion client/ext/tree/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,13 @@ module.exports = ext.register("ext/tree/tree", {
}
});
});


trFiles.addEventListener("keyup", this.$keyup = function(e){
if(this.dragging > 0) {
apf.DragServer.stop();
}
});

trFiles.addEventListener("beforeadd", this.cancelWhenOffline);
trFiles.addEventListener("renamestart", this.cancelWhenOffline);
trFiles.addEventListener("beforeremove", this.cancelWhenOffline);
Expand Down Expand Up @@ -535,6 +541,7 @@ module.exports = ext.register("ext/tree/tree", {
trFiles.removeEventListener("beforeremove", this.$cancelWhenOffline);
trFiles.removeEventListener("dragstart", this.$cancelWhenOffline);
trFiles.removeEventListener("dragdrop", this.$cancelWhenOffline);
trFiles.removeEventListener("keyup", this.$keyup);

this.nodes.each(function(item){
item.destroy(true, true);
Expand Down
2 changes: 1 addition & 1 deletion support/ace
Submodule ace updated 455 files

0 comments on commit 9bf6710

Please sign in to comment.