diff --git a/src/format.js b/src/format.js index 68455cf..2491f9c 100644 --- a/src/format.js +++ b/src/format.js @@ -40,6 +40,10 @@ angular.module('angularPayments') return; } + if ((e.metaKey || e.ctrlKey) && e.which === 118) { + return; + } + if (!/^\d+$/.test(digit) && !e.meta && e.keyCode >= 46) { e.preventDefault(); return; @@ -363,4 +367,4 @@ angular.module('angularPayments') _Format(attr.paymentsFormat, elem, ctrl); } } -}]) \ No newline at end of file +}])