[whatwg/dom] Inform event handler about the default action of an event (#382)

Sometimes authors may want to know the default action of an event if it is not prevented, for example, if it is a shortcut to save the page, the page may want to cancel it and do an internal save action, or if it is a ctrl/cmd-click which opens the link in a new tab, the page may want to do something different than a normal click.

Currently, authors need to detect the platform and even browser to correctly respond to events, for e.g. ctrl on PC vs. cmd on Mac. It might be worth a standard way to know the default action of an event.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/382

Received on Saturday, 3 December 2016 23:29:43 UTC