I've been trying to use event.metaKey, but I can't capture it (the ctrl, shift and alt versions work perfectly). I use the following script to catch it and it want it to evaluate to true when when I press the Windows button.
document.onkeydown = function (event) {
alert(event.metaKey);
}
Link.
It's hinted that it doesn't work in another question. Is there any way to make it work? edit: I don't know whether it matters, but I only need it to work for firefox (addon).