And many of the advanced ones will still get irritated. I can manage my own tabs, TYVM, and don't appreciate it when web designers presumptuously attempt to decide for me when I do and do not want a page to open in a new one.
And many of the advanced ones will still get irritated. I can manage my own tabs, TYVM, and don't appreciate it when web designers presumptuously attempt to decide for me when I do and do not want a page to open in a new one.
Note that I'm not at all disagreeing with the point, but.. geez. People are dumb.
The loss of neural plasticity as we age is certainly regrettable at first glance. But it's not all downsides, and it can hardly be summarized with a flip, "People are dumb." There's evidence to suggest that it's actually an annealing process that's necessary part of staying smart and perhaps even achieving mastery of one's specialty. People who work in machine learning are all familiar with analogous concerns such as overfitting.
linkClickHandler = (e) ->
# can't have meta key
if not e.originalEvent?.ctrlKey and not e.originalEvent?.altKey and not e.originalEvent?.shiftKey
# defer the work so we can kill the link right away
deferred = () =>
href = $(e.target).attr 'href'
if href?
#do something here like history.pushState
setTimeout deferred, 0
# stop bubbling and return false
e.stopPropagation()
return false
else
return true
This gives the users that want to save links and open them in other ways, but still have a good feel when left click only. Clicking on directories in Github source trees demonstrate this well.