Fix - Keyboard on desktop (delete)
This commit is contained in:
parent
1ec2bf7ba0
commit
350f103709
1 changed files with 6 additions and 3 deletions
|
|
@ -164,8 +164,10 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
var disableKeys = angular.element($window).on('keydown', function(e) {
|
var disableKeys = angular.element($window).on('keydown', function(e) {
|
||||||
if (!e.key) return;
|
if (!e.key) return;
|
||||||
if (e.which === 8) { // you can add others here inside brackets.
|
if (e.which === 8) { // you can add others here inside brackets.
|
||||||
e.preventDefault();
|
if (!$scope.altCurrencyModal) {
|
||||||
$scope.removeDigit();
|
e.preventDefault();
|
||||||
|
$scope.removeDigit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.key.match(reNr)) {
|
if (e.key.match(reNr)) {
|
||||||
|
|
@ -359,7 +361,8 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.close = function() {
|
$scope.close = function() {
|
||||||
$scope.altCurrencyModal.hide();
|
$scope.altCurrencyModal.remove();
|
||||||
|
$scope.altCurrencyModal = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.processAmount = function() {
|
$scope.processAmount = function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue