Files
clapper/src/actions.js
2021-04-22 14:32:02 +02:00

27 lines
693 B
JavaScript

const Dialogs = imports.src.dialogs;
var actions = {
open_local: {
run: (window) => new Dialogs.FileChooser(window),
accels: ['<Ctrl>O'],
},
open_uri: {
run: (window) => new Dialogs.UriDialog(window),
accels: ['<Ctrl>U'],
},
prefs: {
run: (window) => new Dialogs.PrefsDialog(window),
},
about: {
run: (window) => new Dialogs.AboutDialog(window),
},
next_track: {
run: (window) => window.child.player.playlistWidget.nextTrack(),
accels: ['<Ctrl>Right'],
},
prev_track: {
run: (window) => window.child.player.playlistWidget.prevTrack(),
accels: ['<Ctrl>Left'],
}
};