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

Unified Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 8816024: Setting focus on the text box in the "Save file as" dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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: chrome/browser/resources/file_manager/js/file_manager.js
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js
index af830bb96b3f5c112dbc58c21ea1d07b3ecaec8a..a5b1e0e2395f44c96047ccb39c204f6fdb9f5504 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -926,7 +926,10 @@ FileManager.prototype = {
};
FileManager.prototype.refocus = function() {
- this.document_.querySelector('[tabindex="0"]').focus();
+ if (this.dialogType_ == FileManager.DialogType.SELECT_SAVEAS_FILE)
+ this.filenameInput_.focus();
+ else
+ this.document_.querySelector('[tabindex="0"]').focus();
};
FileManager.prototype.showButter = function(message, opt_options) {
« 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