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', 'Enter your recovery sentence
Enter your recovery sentence