Skip to content

Commit

Permalink
contextmenu now works when renaming close #1431
Browse files Browse the repository at this point in the history
  • Loading branch information
vakata committed May 4, 2016
1 parent 7abba16 commit ef48a3f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions dist/jstree.js
Original file line number Diff line number Diff line change
Expand Up @@ -5775,6 +5775,9 @@
var last_ts = 0, cto = null, ex, ey;
this.element
.on("contextmenu.jstree", ".jstree-anchor", $.proxy(function (e, data) {
if (e.target.tagName.toLowerCase() === 'input') {
return;
}
e.preventDefault();
last_ts = e.ctrlKey ? +new Date() : 0;
if(data || cto) {
Expand Down
Loading

0 comments on commit ef48a3f

Please sign in to comment.