aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2014-09-25 10:42:35 +1000
committerIan Coleman <coleman.ian@gmail.com>2014-09-25 10:42:35 +1000
commita19a549879504d12ec10955bc550c50294f996ec (patch)
treed3baf1d92a9b12bb0935a52da0fa7a9b013486d5
parent59780293832d7a27d34378d4e47e7995f7d154a0 (diff)
downloadBIP39-a19a549879504d12ec10955bc550c50294f996ec.tar.gz
BIP39-a19a549879504d12ec10955bc550c50294f996ec.tar.zst
BIP39-a19a549879504d12ec10955bc550c50294f996ec.zip
keyup event changed to input
prevents doing unnecessary calculations when pressing ctrl or arrow-keys etc.
-rw-r--r--bip39-standalone.html14
-rw-r--r--src/js/index.js14
2 files changed, 14 insertions, 14 deletions
diff --git a/bip39-standalone.html b/bip39-standalone.html
index 591cdce..9782d11 100644
--- a/bip39-standalone.html
+++ b/bip39-standalone.html
@@ -22736,15 +22736,15 @@ WORDLISTS = {
22736 22736
22737 function init() { 22737 function init() {
22738 // Events 22738 // Events
22739 DOM.phrase.on("keyup", delayedPhraseChanged); 22739 DOM.phrase.on("input", delayedPhraseChanged);
22740 DOM.passphrase.on("keyup", delayedPhraseChanged); 22740 DOM.passphrase.on("input", delayedPhraseChanged);
22741 DOM.generate.on("click", generateClicked); 22741 DOM.generate.on("click", generateClicked);
22742 DOM.more.on("click", showMore); 22742 DOM.more.on("click", showMore);
22743 DOM.bip32path.on("keyup", bip32Changed); 22743 DOM.bip32path.on("input", bip32Changed);
22744 DOM.bip44purpose.on("keyup", bip44Changed); 22744 DOM.bip44purpose.on("input", bip44Changed);
22745 DOM.bip44coin.on("keyup", bip44Changed); 22745 DOM.bip44coin.on("input", bip44Changed);
22746 DOM.bip44account.on("keyup", bip44Changed); 22746 DOM.bip44account.on("input", bip44Changed);
22747 DOM.bip44change.on("keyup", bip44Changed); 22747 DOM.bip44change.on("input", bip44Changed);
22748 DOM.tab.on("click", tabClicked); 22748 DOM.tab.on("click", tabClicked);
22749 DOM.indexToggle.on("click", toggleIndexes); 22749 DOM.indexToggle.on("click", toggleIndexes);
22750 DOM.addressToggle.on("click", toggleAddresses); 22750 DOM.addressToggle.on("click", toggleAddresses);
diff --git a/src/js/index.js b/src/js/index.js
index cee8ffb..7f39ad2 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -35,15 +35,15 @@
35 35
36 function init() { 36 function init() {
37 // Events 37 // Events
38 DOM.phrase.on("keyup", delayedPhraseChanged); 38 DOM.phrase.on("input", delayedPhraseChanged);
39 DOM.passphrase.on("keyup", delayedPhraseChanged); 39 DOM.passphrase.on("input", delayedPhraseChanged);
40 DOM.generate.on("click", generateClicked); 40 DOM.generate.on("click", generateClicked);
41 DOM.more.on("click", showMore); 41 DOM.more.on("click", showMore);
42 DOM.bip32path.on("keyup", bip32Changed); 42 DOM.bip32path.on("input", bip32Changed);
43 DOM.bip44purpose.on("keyup", bip44Changed); 43 DOM.bip44purpose.on("input", bip44Changed);
44 DOM.bip44coin.on("keyup", bip44Changed); 44 DOM.bip44coin.on("input", bip44Changed);
45 DOM.bip44account.on("keyup", bip44Changed); 45 DOM.bip44account.on("input", bip44Changed);
46 DOM.bip44change.on("keyup", bip44Changed); 46 DOM.bip44change.on("input", bip44Changed);
47 DOM.tab.on("click", tabClicked); 47 DOM.tab.on("click", tabClicked);
48 DOM.indexToggle.on("click", toggleIndexes); 48 DOM.indexToggle.on("click", toggleIndexes);
49 DOM.addressToggle.on("click", toggleAddresses); 49 DOM.addressToggle.on("click", toggleAddresses);