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

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

Issue 1581933004: Audio Player: Close the player on Ctrl-W. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/audio_player/js/audio_player.js
diff --git a/ui/file_manager/audio_player/js/audio_player.js b/ui/file_manager/audio_player/js/audio_player.js
index f1a1a4a704e3c20adb97ba19f7f3db49d2229214..ffb0f7a60179e691a25a44499635bd42d0d14deb 100644
--- a/ui/file_manager/audio_player/js/audio_player.js
+++ b/ui/file_manager/audio_player/js/audio_player.js
@@ -327,6 +327,10 @@ AudioPlayer.prototype.onResize_ = function(event) {
*/
AudioPlayer.prototype.onKeyDown_ = function(event) {
switch (util.getKeyModifiers(event) + event.keyIdentifier) {
+ case 'Ctrl-U+0057': // Ctrl+W => Close the player.
+ chrome.app.window.current().close();
+ break;
+
// Handle debug shortcut keys.
case 'Ctrl-Shift-U+0049': // Ctrl+Shift+I
chrome.fileManagerPrivate.openInspector('normal');
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698