diff --git a/chrome-wallet/popup.js b/chrome-wallet/popup.js index 267159b..7d6b429 100644 --- a/chrome-wallet/popup.js +++ b/chrome-wallet/popup.js @@ -223,6 +223,12 @@ angular.module('kkWallet', ['ngRoute', 'ngAnimate', 'ui.bootstrap', 'monospaced. o(t, 'active'), n()) } + + function sendEnter() + { + e.done = !0 + a.sendEnter() + } for (e.getEmptyArray = function(e) { return Array(e) @@ -240,6 +246,7 @@ angular.module('kkWallet', ['ngRoute', 'ngAnimate', 'ui.bootstrap', 'monospaced. e.wordCount += 6; e.wordLength = 4, e.sendInProgress = !1, + e.done = !1, e.getCharAtCurrentPosition = function(t, n) { return t < e.model.currentWord || t === e.model.currentWord && n < e.model.currentCharacterPosition ? '*' : t === e.model.currentWord && n === e.model.currentCharacterPosition ? '|' : '-' @@ -285,26 +292,30 @@ angular.module('kkWallet', ['ngRoute', 'ngAnimate', 'ui.bootstrap', 'monospaced. e.moreWordsAvailable = -1 !== [11, 17].indexOf(e.model.currentWord) && 3 <= e.model.currentCharacterPosition, e.onKeyPress = function(t) { - if (t.preventDefault(), - !e.sendInProgress) + t.preventDefault() + if (e.sendInProgress) return + + var n = t.keyCode + switch (n) { - var n = t.keyCode; - 13 === n ? i(e.enterClasses, function() - { - a.sendEnter() - }) : 8 === n ? i(e.backspaceClasses, function() - { - a.sendBackspace() - }) : 32 === n ? i(e.spaceBarClasses, function() - { - a.sendCharacter(' ') - }) : 65 <= n && 90 >= n && i(e.letterClasses, function() - { - a.sendCharacter(String.fromCharCode(n).toLowerCase()) - }) + case 8: + i(e.backspaceClasses, a.sendBackspace) + break + case 13: + i(e.enterClasses, sendEnter) + break + case 32: + i(e.spaceBarClasses, a.sendCharacter.bind(a, ' ')) + break + default: + if (65 <= n && n <= 90) + { + i(e.letterClasses, + a.sendCharacter.bind(a, String.fromCharCode(n).toLowerCase())) + } } }, - e.send = a.sendEnter + e.send = i.bind(null, e.enterClasses, sendEnter) }]).factory('RecoveryCipherModel', ['DeviceBridgeService', 'NavigationService', function(e, t) { var n = { @@ -3257,7 +3268,7 @@ angular.module('kkWallet', ['ngRoute', 'ngAnimate', 'ui.bootstrap', 'monospaced. e.put('app/popup/buttonRequest/sign-exchange.tpl.html', '

On your confirm the ShapeShift exchange summary. Make sure the details are accurate.

Cancel
'), e.put('app/popup/buttonRequest/signTx.tpl.html', '

On your confirm the transaction summary. Make sure the details are accurate.

Cancel
'), e.put('app/popup/buttonRequest/wipeDevice.tpl.html', '

On your confirm you want to wipe your device. This will remove all of its private keys and settings.

Cancel
'), - e.put('app/popup/characterRequest/characterRequest.tpl.html', '

Enter your recovery sentence

Available Keys
A - Z
Space
Enter
Delete
{{wordIndex + 1}}. {{getCharAtCurrentPosition(wordIndex, $index)}}
Type a space to enter more words
'), + e.put('app/popup/characterRequest/characterRequest.tpl.html', '

Enter your recovery sentence

Available Keys
A - Z
Space
Enter
Delete
{{wordIndex + 1}}. {{getCharAtCurrentPosition(wordIndex, $index)}}
Type a space to enter more words

Checking Recovery Seed.
Waiting on Keepkey. Check device\'s onscreen display..

'), e.put('app/popup/characterRequest/deleteTooltip.tpl.html', '
Use the <delete> or <backspace> key to make corrections to what you have typed.
'), e.put('app/popup/characterRequest/enterTooltip.tpl.html', '
Use the <enter> key to submit your mnemonic key after you type the last letter of the last word. The <enter> key is only active on the 12th, 18th and 24th words and only after 3 or 4 characters are typed.
'), e.put('app/popup/characterRequest/letterTooltip.tpl.html', '
The only characters that are valid in a mnemonic key are alphabetic characters. The first four characters of every valid mnemonic word are unique, so this screen will only let you type up to four characters per word.
'),