]> cat aescling's git repositories - mastodon.git/commit
Don't unconditionally call `preventDefault` and `stopPropagation` on all keyup events...
authorSurinna Curtis <ekiru.0@gmail.com>
Sat, 2 Sep 2017 14:27:16 +0000 (09:27 -0500)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 2 Sep 2017 14:27:16 +0000 (16:27 +0200)
commit8cc1ed3c556830092601425881384f8667dec437
tree7c892de06cd1c736714641b5239318afb3390fd9
parent5e1e466da02e0ab18787e164777c4a459a209305
Don't unconditionally call `preventDefault` and `stopPropagation` on all keyup events (#4777)

* UploadArea should only preventDefault for Escape

This will make accessibility for some things less effortful, since we won't have to define a prior event handler to do whatever should be happening by default.

* Remove workaround for fixed bug in SettingToggle

SettingToggle was toggling itself in response to keydown of space, and then the keyup was doing it again
app/javascript/mastodon/features/notifications/components/setting_toggle.js
app/javascript/mastodon/features/ui/components/upload_area.js