Web browsers fail to capture windows key shortcut. For instance, Windows key + D displays the desktop.
However, in the browser, JS could only detect the keydown event of the Windows key, but is not able to capture the keyboard event of D or the keyup event of the windows key.
What's the deep reason behind it? Is there any document explaining it?
Windows+D is captured by the OS and is not forwarded to the browser. A possible workaround is to use Ctrl+Windows+D to simulate Windows+D.