0

Help me squash this bug?

So I finally got this code to only clear the textarea while it is focused, otherwise, do something else HOWEVER that's part of the problem. It will do something else as long as escape is not pressed as long as the textarea is focused, since technically, only 1 condition is met. How can I fix this? Is there a way to make it it ignore every other key or something? https://code.sololearn.com/WhH3Q09RHeQj/#js

1st Sep 2018, 1:33 AM
Daniel Cooper
Daniel Cooper - avatar
1 Antwort
0
Nevermind, I figured it out on my own.
1st Sep 2018, 1:33 AM
Daniel Cooper
Daniel Cooper - avatar