Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10 virtual desktop shortcut #58

Open
Illyism opened this issue Jan 19, 2016 · 1 comment
Open

Windows 10 virtual desktop shortcut #58

Illyism opened this issue Jan 19, 2016 · 1 comment

Comments

@Illyism
Copy link
Member

Illyism commented Jan 19, 2016

I use multiple virtual desktops on Windows 10. Usually I'm working on desktop 1, and have the musicplayer on desktop 2 in chrome, doing it's thing. When I use the keyboard shortcut "ctrl + windows + right arrow" to jump to desktop two, the song I have playing stops and the player skips to the next song. I think the music player has to be in focus, and the song I'm playing has to be the last thing I clicked in the music player.

@mihe
Copy link

mihe commented Sep 7, 2017

For anyone else annoyed by this, here's a small userscript that disables the arrow keys. I've only tested it with the Tampermonkey extension on Chrome.

// ==UserScript==
// @name reddit.musicplayer.io
// @description Disables arrow keys at reddit.musicplayer.io
// @match *://reddit.musicplayer.io/*
// @version 1.0
// ==/UserScript==
(function() {
    unsafeWindow.document.addEventListener('keyup', function(e) {
        switch (e.keyCode) {
            case 37: // Left
            case 38: // Up
            case 39: // Right
            case 40: // Down
                e.stopImmediatePropagation();
                return;
        }
    }, true);
})();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants