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

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

Issue 2299493002: Add an ability for resize in gallery. (Closed)
Patch Set: Created 4 years, 4 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: ui/file_manager/gallery/js/gallery.js
diff --git a/ui/file_manager/gallery/js/gallery.js b/ui/file_manager/gallery/js/gallery.js
index 13039a4fa9ab017c082ee2a69b5fbf4daf5ca5e6..da6a82c8c1d984fc59d662d78b565f6b307b49ec 100644
--- a/ui/file_manager/gallery/js/gallery.js
+++ b/ui/file_manager/gallery/js/gallery.js
@@ -776,6 +776,8 @@ Gallery.prototype.onKeyDown_ = function(event) {
switch (keyString) {
case 'Backspace':
// The default handler would call history.back and close the Gallery.
+ // Except while typing into text.
+ if(!event.target.classList.contains('text'))
event.preventDefault();
fukino 2016/08/31 05:10:24 indent is needed
harukam 2016/09/05 10:37:00 Done.
break;

Powered by Google App Engine
This is Rietveld 408576698