gallery.accords-library.com/client/js/controls
rr- d5e197e6ea client/general: add empty href for link buttons
In e464e69 I removed href='#' but I noticed that it broke some things.
Readding href serves two purposes:

- it makes links reachable with Tab key
- it makes links clickable with Enter key

The alternative to this approach was to introduce [tabindex] and [role]
attributes. But not only using tabindex=0 with <a/> is questionable,
it'd require adding a keyboard handler that'd intercept space and return
key presses and simulated link clicks. Since it's best to leave this
kind of thing to the native UI, I went with readding hrefs instead. I
believe that hash hrefs, even though being a common practice, are silly,
so I decided to settle down with empty hrefs.

As a bonus, I added a snippet that prevents middle mouse clicks from
opening such links/buttons in new tabs, which was the motivation for
e464e69.
2016-08-22 01:40:30 +02:00
..
auto_complete_control.js client/general: add empty href for link buttons 2016-08-22 01:40:30 +02:00
comment_control.js client/general: remove api calls from controls 2016-06-18 10:35:20 +02:00
comment_form_control.js client/general: remove api calls from controls 2016-06-18 10:35:20 +02:00
comment_list_control.js client/general: remove api calls from controls 2016-06-18 10:35:20 +02:00
expander_control.js client/expanders: extract HTML 2016-08-22 01:40:30 +02:00
file_dropper_control.js client/file-dropper: add URL support 2016-08-20 22:47:45 +02:00
post_content_control.js client/posts: add post content editing 2016-07-27 22:27:33 +02:00
post_edit_sidebar_control.js client/general: add empty href for link buttons 2016-08-22 01:40:30 +02:00
post_notes_overlay_control.js client/notes: fix saving post breaking selection 2016-08-05 23:04:29 +02:00
post_readonly_sidebar_control.js client/posts: display edit link for tagless posts 2016-07-28 23:10:41 +02:00
tag_auto_complete_control.js client/tags: mark used tags in autocomplete 2016-07-30 23:10:58 +02:00
tag_input_control.js client/general: add empty href for link buttons 2016-08-22 01:40:30 +02:00