1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-11-13 03:43:18 +00:00

Feat: added keyboard shurtcuts help

Fix: use event.code instead of deprecated event.which
Feat: blur inputs on Esc
Feat: / focuses search fields
This commit is contained in:
jcorporation
2018-11-08 22:42:45 +00:00
parent a70ab4e48c
commit 9ca519c69a
5 changed files with 92 additions and 50 deletions

View File

@@ -836,7 +836,6 @@
//end patch
set[i].tagName === 'A' && newSet[push](set[i]);
}
console.log(newSet);
return newSet;
})(),
@@ -891,6 +890,8 @@
idx = isSameElement ? 0
: key === 38 ? (idx>1?idx-1:0)
: key === 40 ? (idx<menuItems[length]-1?idx+1:idx) : idx;
if ( idx == 0 || idx == menuItems[length]-1)
break;
} while ( !menuItems[idx].offsetHeight )
//end patch
menuItems[idx] && setFocus(menuItems[idx]);