@dhutaryan/ngx-mat-timepicker 14.2.2 → 14.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/time-input-base.mjs +4 -3
- package/fesm2015/dhutaryan-ngx-mat-timepicker.mjs +3 -2
- package/fesm2015/dhutaryan-ngx-mat-timepicker.mjs.map +1 -1
- package/fesm2020/dhutaryan-ngx-mat-timepicker.mjs +3 -2
- package/fesm2020/dhutaryan-ngx-mat-timepicker.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1028,7 +1028,7 @@ const DIGIT_KEYS = [
|
|
|
1028
1028
|
'Digit8',
|
|
1029
1029
|
'Digit9',
|
|
1030
1030
|
];
|
|
1031
|
-
const SPECIAL_KEYS = ['Backspace', 'Delete', 'ArrowLeft', 'ArrowRight'];
|
|
1031
|
+
const SPECIAL_KEYS = ['Backspace', 'Delete', 'ArrowLeft', 'ArrowRight', 'Tab'];
|
|
1032
1032
|
class MatTimeInputBase {
|
|
1033
1033
|
constructor(element, _cdr, _document) {
|
|
1034
1034
|
this.element = element;
|
|
@@ -1047,7 +1047,8 @@ class MatTimeInputBase {
|
|
|
1047
1047
|
this.setInputPlaceholder(this._value);
|
|
1048
1048
|
}
|
|
1049
1049
|
_keydown(event) {
|
|
1050
|
-
const isAllow = (DIGIT_KEYS.includes(event.code) && !event.shiftKey) ||
|
|
1050
|
+
const isAllow = (DIGIT_KEYS.includes(event.code) && !event.shiftKey) ||
|
|
1051
|
+
SPECIAL_KEYS.includes(event.code);
|
|
1051
1052
|
if (!isAllow) {
|
|
1052
1053
|
event.preventDefault();
|
|
1053
1054
|
}
|