Change "Random song" shortcut to something reasonable

master
William Toohey 10 years ago
parent ba2f7c589e
commit bac1de7bfd
  1. 5
      js/HuesCore.js
  2. 2
      js/HuesInfo.js

@ -172,8 +172,7 @@ function HuesCore(defaults) {
document.onkeydown = function(e){
e = e || window.event;
// Ignore modifiers so we don't steal other events
// Shift is actually used, and is thus ignored here
if (e.altKey || e.ctrlKey || e.metaKey) {
if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) {
return true;
}
// If we've focused a text input, let the input go through!
@ -843,7 +842,7 @@ HuesCore.prototype.keyHandler = function(key) {
case 87: // W
this.settings.toggle();
break;
case 16: // SHIFT
case 78: // N
this.randomSong();
break;
default:

@ -52,7 +52,7 @@ var beatGlossary = [
var shortcuts = [
"↑↓ Change song",
"←→ Change image",
"[SHIFT] Random song",
"[N] Random song",
"-+ Change volume",
"[M] Toggle mute",
"[F] Toggle automode",

Loading…
Cancel
Save