I’ve seen people post things about overriding keys to when they press one, it ‘presses’ or functions as another, but this seems to be only in the program itself. Would there be any other way to stop the windows key (obviously only works on windows devices) from opening up the dock?
I don’t use Windows but no matter which OS you are using it is responsible for detecting key, mouse, touch events etc.
In most cases the event is forwarded to the active application for processing but some keys are recognized as being specific to the system. I suspect these keys are processed by the OS and not forwarded to the active application e.g. keys for brightness and volume control.
I think the Windows key is probably like that and is not forwarded to the active app in which case it cannot provide an alternative action for it.
I did say suspect, so I might be totally wrong but its seems logical to me.
It actually seems to be forwarded.
void setup()
{
}
void draw()
{
}
void keyPressed()
{
println("key pressed");
println(keyCode);
}
Output when pressing the Windows key
key pressed
524
The (Windows) start menu also pops up. If you can remove this specific key thereafter so the OS does not handle it is another question (that I do not have the answer to).