did some more work. Mainly worked on code cleanliness and hotkey support (https://defkey.com/tidal-desktop-shortcuts)

This commit is contained in:
2019-10-20 22:47:01 +02:00
parent cbf15965e4
commit 9c3ac88d12
14 changed files with 1672 additions and 122 deletions

11
src/scripts/hotkeys.js Normal file
View File

@@ -0,0 +1,11 @@
const hotkeyjs = require("hotkeys-js");
const hotkeys = {};
hotkeys.add = function(keys, func) {
hotkeyjs(keys, function(event, args) {
event.preventDefault();
func(event, args);
});
};
module.exports = hotkeys;