Bug combo solucionado

This commit is contained in:
Juan Ferrer Toribio 2017-01-19 19:15:07 +01:00
parent 1834068123
commit a74925d380
1 changed files with 8 additions and 7 deletions

View File

@ -150,13 +150,14 @@ function controller($http, $element, $attrs, $scope, $parse, $document, popoverP
this.loadData(filter, () => this.showPopover());
timeoutId = null;
},
isKeycodePrintable: function(keycode) {
return keycode == 32 // Spacebar
|| (keycode > 47 && keycode < 58) // Numbers
|| (keycode > 64 && keycode < 91) // Letters
|| (keycode > 95 && keycode < 112) // Numpad
|| (keycode > 185 && keycode < 193) // ;=,-./`
|| (keycode > 218 && keycode < 223); // [\]'
isKeycodePrintable: function(keyCode) {
return keyCode == 32 // Spacebar
|| keyCode == 8 // Backspace
|| (keyCode > 47 && keyCode < 58) // Numbers
|| (keyCode > 64 && keyCode < 91) // Letters
|| (keyCode > 95 && keyCode < 112) // Numpad
|| (keyCode > 185 && keyCode < 193) // ;=,-./`
|| (keyCode > 218 && keyCode < 223); // [\]'
},
activateOption: function(index) {
if(!popover)