From f71e0e9da99db3d5fe8068c8d3cee281a55d3982 Mon Sep 17 00:00:00 2001 From: Sem Vissscher Date: Wed, 16 Dec 2020 20:30:01 +0100 Subject: [PATCH] Switched like/dislike positions Switched like/dislike positions to match youtube musics layout --- plugins/touchbar/back.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/touchbar/back.js b/plugins/touchbar/back.js index 9bead4d2af..e165950fff 100644 --- a/plugins/touchbar/back.js +++ b/plugins/touchbar/back.js @@ -17,7 +17,7 @@ const titleSelector = '.title.style-scope.ytmusic-player-bar'; const imageSelector = '#layout > ytmusic-player-bar > div.middle-controls.style-scope.ytmusic-player-bar > img'; // These keys will be used to go backwards, pause, skip songs, like songs, dislike songs -const keys = ['k', 'space', 'j', '+', '_']; +const keys = ['k', 'space', 'j', '_', '+']; const presskey = (window, key) => { window.webContents.sendInputEvent({ @@ -67,10 +67,10 @@ module.exports = win => { label: '⏭' }), new TouchBarButton({ - label: '👍' + label: '👎' }), new TouchBarButton({ - label: '👎' + label: '👍' }) ], change: i => presskey(win, keys[i])