Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix focus issues on selection change & drag to select
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Mar 23, 2016
1 parent e1b1059 commit 6f7d0eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Expand Up @@ -150,6 +150,9 @@ Class.create("FilesList", SelectableElements, {
this._fireChange = false;
this.setSelectedNodes(dm.getSelectedNodes());
this._fireChange = origFC;
if(!this.hasFocus){
window.setTimeout(function(){pydio.UI.focusOn(this);}.bind(this),10);
}
}.bind(this);

if(this._dataModel){
Expand Down
Expand Up @@ -93,6 +93,9 @@ Class.create('SelectableElements', {
Event.observe(this.dragSelectionElement, "mousedown", this.eventMouseDown);
},
dragStart : function(e){
if(!this.hasFocus){
pydio.UI.focusOn(this);
}
this.originalX = e.clientX;
this.originalY = e.clientY;

Expand Down

0 comments on commit 6f7d0eb

Please sign in to comment.