Commit e8aa3a54 authored by serya@chromium.org's avatar serya@chromium.org

Setting focus on the text box in the "Save file as" dialog.

BUG=None
TEST=None


Review URL: http://codereview.chromium.org/8816024

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113244 0039d316-1c4b-4281-b951-d872f2087c98
parent 43f48df5
...@@ -924,7 +924,10 @@ FileManager.prototype = { ...@@ -924,7 +924,10 @@ FileManager.prototype = {
}; };
FileManager.prototype.refocus = function() { 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) { FileManager.prototype.showButter = function(message, opt_options) {
......
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