]> cat aescling's git repositories - mastodon.git/commit
Additional key checks for browser compatibility (#2539)
authorNoëlle Anthony <noelle.d.anthony@gmail.com>
Sun, 30 Apr 2017 13:12:14 +0000 (09:12 -0400)
committerMatt Jankowski <mjankowski@thoughtbot.com>
Sun, 30 Apr 2017 13:12:14 +0000 (09:12 -0400)
commitc67d3c990b29bd8e6ee47a2b83d7dad0b5788c2e
tree6f9238de1f7db1fc2a175303b9b9fb47e3b24956
parent2e47fe3e1a8087e1beda15b145aa9ce88fff1229
Additional key checks for browser compatibility (#2539)

Not all browsers recognize e.key === 'Escape'; some use 'Esc' and some only respond to the keyCode.
app/assets/javascripts/components/features/ui/components/modal_root.jsx