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

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

Issue 7003150: Merge 88759 - CrOS - Fix crash when pressing Enter in file browser dialog (Closed) Base URL: svn://svn.chromium.org/chrome/branches/782/src/
Patch Set: '' Created 9 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
Index: chrome/browser/resources/file_manager/js/file_manager.js
===================================================================
--- chrome/browser/resources/file_manager/js/file_manager.js (revision 88850)
+++ chrome/browser/resources/file_manager/js/file_manager.js (working copy)
@@ -1999,8 +1999,10 @@
if (this.selection.totalCount == 1 &&
this.selection.leadEntry.isDirectory &&
this.dialogType_ != FileManager.SELECT_FOLDER) {
+ event.preventDefault();
this.changeDirectory(this.selection.leadEntry.fullPath);
} else if (!this.okButton_.disabled) {
+ event.preventDefault();
this.onOk_();
}
break;
« no previous file with comments | « chrome/browser/extensions/extension_file_browser_private_api.cc ('k') | chrome/browser/ui/views/file_manager_dialogs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698