Expand selected file on i key

Bug: Issue 5773
Change-Id: Ia48723adc8617daecdce6c11e006e1391d106ce4
This commit is contained in:
Viktar Donich
2017-03-14 15:59:32 -07:00
parent 3e16c806cc
commit 3a9837c297

View File

@@ -240,6 +240,10 @@
}
},
_togglePathExpandedByIndex: function(index) {
this._togglePathExpanded(this._files[index].__path);
},
_handlePatchChange: function(e) {
var patchRange = Object.assign({}, this.patchRange);
patchRange.basePatchNum = Polymer.dom(e).rootTarget.value;
@@ -430,7 +434,7 @@
this.$.fileCursor.index === -1) { return; }
e.preventDefault();
this._togglePathExpanded(this.$.fileCursor.target.path);
this._togglePathExpandedByIndex(this.$.fileCursor.index);
},
_handleCapitalIKey: function(e) {