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

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

Issue 1883813005: Add shortcuts to audio player. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert 'send to start when paused' for now. Created 4 years, 8 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 | « ui/file_manager/audio_player/elements/control_panel.js ('k') | 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 8241903d41ad3ffba519769f8e1c341821966116..2397edaa0d69e903c4a293d97e8cbd7e71706dd8 100644
--- a/ui/file_manager/audio_player/js/audio_player.js
+++ b/ui/file_manager/audio_player/js/audio_player.js
@@ -368,6 +368,27 @@ AudioPlayer.prototype.onKeyDown_ = function(event) {
case 'Ctrl-Shift-U+0042': // Ctrl+Shift+B
chrome.fileManagerPrivate.openInspector('background');
break;
+
+ case 'U+0020': // Space
+ case 'U+004B': // K
+ this.player_.$.audioController.playClick();
+ break;
+ case 'Up':
+ case 'Right':
+ if (event.target.id !== 'volumeSlider')
+ this.player_.$.audioController.smallSkip(true);
+ break;
+ case 'Down':
+ case 'Left':
+ if (event.target.id !== 'volumeSlider')
+ this.player_.$.audioController.smallSkip(false);
+ break;
+ case 'U+004C': // L
+ this.player_.$.audioController.bigSkip(true);
+ break;
+ case 'U+004A': // J
+ this.player_.$.audioController.bigSkip(false);
+ break;
}
};
« no previous file with comments | « ui/file_manager/audio_player/elements/control_panel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698