Index: ui/file_manager/gallery/js/slide_mode.js |
diff --git a/ui/file_manager/gallery/js/slide_mode.js b/ui/file_manager/gallery/js/slide_mode.js |
index 657bb853b615c84bdb9e75c1fc59702059fa132c..4443fe855e3ef1d47475f957cc57d615a6516c3a 100644 |
--- a/ui/file_manager/gallery/js/slide_mode.js |
+++ b/ui/file_manager/gallery/js/slide_mode.js |
@@ -203,7 +203,6 @@ function SlideMode(container, content, topToolbar, bottomToolbar, prompt, |
*/ |
this.spinnerTimer_ = null; |
- this.context_.appWindow.onRestored.addListener(this.onRestored_.bind(this)); |
window.addEventListener('resize', this.onResize_.bind(this)); |
// ---------------------------------------------------------------- |
@@ -1114,9 +1113,7 @@ SlideMode.prototype.onKeyDown = function(event) { |
if (this.isSlideshowOn_()) { |
switch (keyID) { |
- // Escape key is captured by the platform to exit full screen. We handle |
- // it by onRestored event. |
- |
+ case 'U+001B': // Escape exits the slideshow. |
case 'MediaStop': |
this.stopSlideshow_(event); |
break; |
@@ -1221,17 +1218,6 @@ SlideMode.prototype.onKeyDown = function(event) { |
}; |
/** |
- * Restored event handler. |
- * @private |
- */ |
-SlideMode.prototype.onRestored_ = function() { |
- // Leave slide show since the window should not be in full screen when |
- // onRestored event is dispatched. |
- if (this.isSlideshowOn_()) |
- this.stopSlideshow_(); |
-}; |
- |
-/** |
* Resize handler. |
* @private |
*/ |