I was trying to implement a full screen functionality using JavaScript. I just want to enter full screen by f key only. Have written a function to implement this:
function shortcutsHandler(event) { const isModifierKeyHeld = event.ctrlKey || event.altKey || event.metaKey || event.shiftKey; if (event.key === 'f'&& !isModifierKeyHeld) { enterFullScreen(); return; }}This is working fine in Ubuntu systems. One of my colleagues using a Windows 11 system found that right Alt+f is triggering full screen in his system.How can I get this resolved?Any solutions is highly appreciated.