Commit 2f3f25f1 authored by oka's avatar oka Committed by Commit bot

Re-focus file list when quick view is closed.

BUG=640133
TEST=manually

Review-Url: https://codereview.chromium.org/2285533002
Cr-Commit-Position: refs/heads/master@{#414630}
parent 3f7abca6
......@@ -75,6 +75,9 @@ function QuickViewController(
listContainer.element.addEventListener(
'keydown', this.onKeyDownToOpen_.bind(this));
quickView.addEventListener('keydown', this.onQuickViewKeyDown_.bind(this));
quickView.addEventListener('iron-overlay-closed', function() {
this.listContainer_.focus();
}.bind(this));
quickView.onOpenInNewButtonTap = this.onOpenInNewButtonTap_.bind(this);
var toolTip = this.quickView_.$$('files-tooltip');
......@@ -120,7 +123,6 @@ QuickViewController.prototype.onQuickViewKeyDown_ = function(event) {
case 'Escape':
event.preventDefault();
this.quickView_.close();
this.listContainer_.focus();
break;
case 'ArrowRight':
var index = this.fileListSelectionModel_.selectedIndex + 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment