I was display ' notification twice

This commit is contained in:
Akash Shah 2019-07-17 11:30:48 -04:00
parent 987d4420ba
commit 8ed15ce2a7

View File

@ -35,13 +35,6 @@ export class EmptyErrorEditorComponent implements AfterViewInit {
this.textInput.nativeElement.focus(); this.textInput.nativeElement.focus();
}); });
} }
if (event.key === '\'') {
event.preventDefault();
this.notif('Cannot use \' (apostrophes)');
setTimeout(() => {
this.textInput.nativeElement.focus();
});
}
} }
onKeyDown(event) { onKeyDown(event) {