Skip to content

Commit

Permalink
Use keydown instead of paste
Browse files Browse the repository at this point in the history
  • Loading branch information
mawalu committed Sep 10, 2015
1 parent a86a054 commit e4a1f0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.css
Expand Up @@ -20,6 +20,7 @@ input {
border-radius: 3px;
width: 35em;
padding: .5em .8em;
color: white;
}
input:focus {
border: 1px solid royalblue;
Expand Down
2 changes: 1 addition & 1 deletion main.js
Expand Up @@ -18,4 +18,4 @@ function triggeredInput() {
}, 4);
};

input.addEventListener('paste', triggeredInput);
input.addEventListener('keydown', triggeredInput);

0 comments on commit e4a1f0c

Please sign in to comment.