working version of creating a tweet

This commit is contained in:
erik-sn committed 2020-09-19 23:42:29 -04:00
1 parent 64973a5cc9
commit e5303436ff
9 files changed
+145 -15

No files matched your search

@@ -38,7 +38,8 @@ export const TwitterApp = () => {
const listener = window.addEventListener(
"keydown",
(e) => {
if (e.key == "Escape" || e.key == "Esc") {
const isEscapeKey = e.key == "Escape" || e.key == "Esc";
if (isEscapeKey) {
e.preventDefault();
hideModal();
}