]> cat aescling's git repositories - mastodon.git/commit
Improve keyboard navigation in privacy dropdown (#11492)
authorThibG <thib@sitedethib.com>
Tue, 6 Aug 2019 09:59:58 +0000 (11:59 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 6 Aug 2019 09:59:58 +0000 (11:59 +0200)
commit27a0d02d0d960163e98595b05412c0d03a4875d0
treeb2a80e80eec0448ef0d03c06c1aff6c540cd9df5
parenta12f1a0baf3d31ecc9779c25b4bf4a0c9bd95543
Improve keyboard navigation in privacy dropdown (#11492)

* Trap tab in privacy dropdown

* Give focus back to last focused element when privacy dropdown menu closes

* Actually give back focus to the element that had it before clicking the dropdown
app/javascript/mastodon/components/icon_button.js
app/javascript/mastodon/features/compose/components/privacy_dropdown.js