Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(694)

Unified Diff: ui/file_manager/file_manager/foreground/js/file_manager.js

Issue 333203002: Files.app: Refocus to the list after renaming a file/folder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/file_manager.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
index 4ad1588991c8428ca5e03225e15429eebd266635..5ad2a946bacdcd2b6beaabea7b5a916eb47fd1cb 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -2574,6 +2574,8 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
renamedItemElement.removeAttribute('renaming');
this.table_.endBatchUpdates();
this.grid_.endBatchUpdates();
+ // Focus may go out of the list. Back it to the list.
+ this.currentList_.focus();
}.bind(this),
function(error) {
// Write back to the old name.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698