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

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

Loading…
Cancel
Save