4 ms·
As someone who hasn't explored this much, why is a meta key problematic?
by martin-adams 14y ago
As someone who hasn't explored this much, why is a meta key problematic?
- seiji 14y agoI think most people open-in-new-tab by command or control clicking on a link. The event handler can detect the key being held down while you click a link. We're basically guessing their intent and not running preventDefault if they are trying to open things in a new tab.
- mschuster91 14y agoExactly... and we're already "guessing intents" way too much! It's all Apple-style, leave the user with as few choices as possible.
- chc 14y agoAs seiji explained, modifier keys are used to indicate that you want to do special things with links such as open in a new tab or download the linked document. A naive click override will ignore the modifiers and treat all clicks the same even though the intent is different.