keyup event changed to input

prevents doing unnecessary calculations when pressing ctrl or arrow-keys
etc.
This commit is contained in:
Ian Coleman
2014-09-25 10:42:35 +10:00
parent 5978029383
commit a19a549879
2 changed files with 14 additions and 14 deletions

View File

@@ -22736,15 +22736,15 @@ WORDLISTS = {
function init() {
// Events
DOM.phrase.on("keyup", delayedPhraseChanged);
DOM.passphrase.on("keyup", delayedPhraseChanged);
DOM.phrase.on("input", delayedPhraseChanged);
DOM.passphrase.on("input", delayedPhraseChanged);
DOM.generate.on("click", generateClicked);
DOM.more.on("click", showMore);
DOM.bip32path.on("keyup", bip32Changed);
DOM.bip44purpose.on("keyup", bip44Changed);
DOM.bip44coin.on("keyup", bip44Changed);
DOM.bip44account.on("keyup", bip44Changed);
DOM.bip44change.on("keyup", bip44Changed);
DOM.bip32path.on("input", bip32Changed);
DOM.bip44purpose.on("input", bip44Changed);
DOM.bip44coin.on("input", bip44Changed);
DOM.bip44account.on("input", bip44Changed);
DOM.bip44change.on("input", bip44Changed);
DOM.tab.on("click", tabClicked);
DOM.indexToggle.on("click", toggleIndexes);
DOM.addressToggle.on("click", toggleAddresses);

View File

@@ -35,15 +35,15 @@
function init() {
// Events
DOM.phrase.on("keyup", delayedPhraseChanged);
DOM.passphrase.on("keyup", delayedPhraseChanged);
DOM.phrase.on("input", delayedPhraseChanged);
DOM.passphrase.on("input", delayedPhraseChanged);
DOM.generate.on("click", generateClicked);
DOM.more.on("click", showMore);
DOM.bip32path.on("keyup", bip32Changed);
DOM.bip44purpose.on("keyup", bip44Changed);
DOM.bip44coin.on("keyup", bip44Changed);
DOM.bip44account.on("keyup", bip44Changed);
DOM.bip44change.on("keyup", bip44Changed);
DOM.bip32path.on("input", bip32Changed);
DOM.bip44purpose.on("input", bip44Changed);
DOM.bip44coin.on("input", bip44Changed);
DOM.bip44account.on("input", bip44Changed);
DOM.bip44change.on("input", bip44Changed);
DOM.tab.on("click", tabClicked);
DOM.indexToggle.on("click", toggleIndexes);
DOM.addressToggle.on("click", toggleAddresses);