Here's what I'm trying to do...
I'm building a custom tab navigation system that acts similar to Chrome on Mac (the setup that all my users have; nobody has Windows nor uses anything other than Chrome).
When the user clicks on a link without a Command key pressed, I need to create a new tab and then give that tab focus. This part is working fine.
When the user clicks on a link with a Command key pressed, I need to create a new tab but not give that tab focus. This is the part I can't figure out.
But I haven't found a way to intercept those events outside of something like the keyup and keydown events you can process as part of an input field, which doesn't help me.
Is there any way to intercept keyboard or browser events like keyup and keydown, or otherwise detect a Command key is pressed at the time a link or button event is handled?