Chromium Code Reviews| 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; |