feat(nds): improve fullscreen button and add volume slider
This commit is contained in:
@@ -13,6 +13,12 @@ export const useKeyDown = (callback: KeyDownCallback) => {
|
||||
if (app.lagDetected) return;
|
||||
|
||||
const ndsButton = mapCodeToNDS(event.code);
|
||||
if (
|
||||
ndsButton &&
|
||||
document.activeElement &&
|
||||
document.activeElement !== document.body
|
||||
)
|
||||
return;
|
||||
callback({
|
||||
key: ndsButton ? `NDS_${ndsButton}` : event.key,
|
||||
ndsButton,
|
||||
|
||||
Reference in New Issue
Block a user