Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7074

Right alt functioning differently in Windows and ubuntu

$
0
0

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.


Viewing all articles
Browse latest Browse all 7074

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>