Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request #46 from adrian-enspired/keyup-keydown
Browse files Browse the repository at this point in the history
nativeKeyboard Should Listen to "keydown"
  • Loading branch information
Mobius1 authored Nov 9, 2017
2 parents c2e78f0 + 50f6743 commit 141be57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selectr.js
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@
var typing = '';
var typingTimeout = null;

this.selected.addEventListener("keyup", function (e) {
this.selected.addEventListener("keydown", function (e) {
// Do nothing if disabled, not focused, or modifier keys are pressed
if (
that.disabled ||
Expand Down

0 comments on commit 141be57

Please sign in to comment.