Skip to content

Commit

Permalink
Fixed backspace intercept
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleeckx committed Mar 15, 2017
1 parent 06760d4 commit ce46415
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
private _keypress(e: KeyboardEvent): void {
const keyCode = e.keyCode || e.which;

if (keyCode === Keyboard.KeyCodes.tab || keyCode === Keyboard.KeyCodes.shift || keyCode === Keyboard.KeyCodes.control || keyCode === Keyboard.KeyCodes.alt || keyCode === Keyboard.KeyCodes.leftarrow || keyCode === Keyboard.KeyCodes.rightarrow || keyCode === Keyboard.KeyCodes.uparrow || keyCode === Keyboard.KeyCodes.downarrow)
if (keyCode === Keyboard.KeyCodes.tab || keyCode === Keyboard.KeyCodes.shift || keyCode === Keyboard.KeyCodes.control || keyCode === Keyboard.KeyCodes.alt || keyCode === Keyboard.KeyCodes.leftarrow || keyCode === Keyboard.KeyCodes.rightarrow || keyCode === Keyboard.KeyCodes.uparrow || keyCode === Keyboard.KeyCodes.downarrow || keyCode === Keyboard.KeyCodes.backspace)
return;

const input = <HTMLInputElement>e.target;
Expand Down

0 comments on commit ce46415

Please sign in to comment.