Skip to content

Commit

Permalink
Don't capture Tab key press
Browse files Browse the repository at this point in the history
  • Loading branch information
stephannv authored Dec 27, 2024
1 parent f2de36e commit 1628c62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/set-mask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ function setMask(
// Trigger input submit
if (e.key === 'Enter') return;

// Allow focus change
if (e.key === 'Tab') return;

// Select all
if (e.ctrlKey && e.key === 'a') return setCaretPosition([firstPositionToNumber, lastPositionToNumber]);

Expand Down

0 comments on commit 1628c62

Please sign in to comment.