Skip to content

Commit d9c36ae

Browse files
refactor(igxMask): cleanup/streamline parsing and input handling
- input parsing go through one method - add drag and drop functionality - set default value on mask prop
1 parent d4c72f9 commit d9c36ae

File tree

7 files changed

+345
-535
lines changed

7 files changed

+345
-535
lines changed

projects/igniteui-angular/src/lib/core/utils.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,13 @@ export const enum KEYCODES {
139139
RIGHT_ARROW = 39,
140140
DOWN_ARROW = 40,
141141
F2 = 113,
142-
TAB = 9
142+
TAB = 9,
143+
Ctrl = 17,
144+
Z = 90,
145+
Y = 89,
146+
X = 88,
147+
BACKSPACE = 8,
148+
DELETE = 46
143149
}
144150

145151
/**

projects/igniteui-angular/src/lib/date-picker/date-picker.component.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1148,9 +1148,9 @@ describe('IgxDatePicker', () => {
11481148
const input = fixture.debugElement.query(By.directive(IgxInputDirective));
11491149
expect(input).toBeDefined();
11501150
datePicker.isSpinLoop = false;
1151-
11521151
input.nativeElement.focus();
11531152
UIInteractions.sendInput(input, '31-03-19');
1153+
fixture.detectChanges();
11541154
expect(input.nativeElement.value).toBe('31-03-19');
11551155

11561156
input.nativeElement.focus();

0 commit comments

Comments
 (0)