webui: make action link focus behavior more correcter.
commit6ba6f9a78170f7666bd78be31155cd975cae7e23
authordbeam <dbeam@chromium.org>
Wed, 17 Dec 2014 07:06:31 +0000 (16 23:06 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Dec 2014 07:06:58 +0000 (17 07:06 +0000)
tree40299b7c5027635ce9e4b4eefcf5ba70ea69ab4e
parent4a2efcee4d51a0c0dcfb2fd0c142df33e5750755
webui: make action link focus behavior more correcter.

tl;dr - I was totally wrong, <a href> does get focused when the mouse is
pressed, it just inconveniently doesn't show a focus outline in this case.

This CL actually focuses action links on mouse press, but hides the outline if
focus is initiated via mouse press. It also adds behavior to prevent text
selection when the mouse is dragged (to match more odd <a href> behavior).

R=dmazzoni@chromium.org
BUG=441233

Review URL: https://codereview.chromium.org/805423003

Cr-Commit-Position: refs/heads/master@{#308753}
ui/webui/resources/css/widgets.css
ui/webui/resources/js/action_link.js