Hey !

So we got this keyboard navigation bug with flag on some browser.

Step to reproduce :

  1. Navigate to the flag icon / link with tab
  2. Press enter to un/flag the content
  3. The focus is lost after the return of ajax callback

On firefox it's not a big issue, tabbing one more time put the focus back on the icon, but on browsers like Chromium, the focus is sent back to the beginning of the document, which is a big accessibility problem (stopping us from our AA accessibility grade, damn…).

So what I was thinking about was to add a Command after the operation, in Controller/ActionLinkController.php, somewhere like // Create a new JQuery Replace command to update the link display. in order to put the focus back on the element when the replace is over, with maybe a small delay or something else.

I'd really like to solve this issue, every feedback / advice is well appreciated.

Thanks !