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:
3
dist/htdocs/js/bootstrap-native-v4.js
vendored
3
dist/htdocs/js/bootstrap-native-v4.js
vendored
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user