Skip to content

Commit 26c3ca0

Browse files
authored
🔀 Merge pull request #81 from stephannv/patch-1
Don't capture `Tab` key press
2 parents f2de36e + 1628c62 commit 26c3ca0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/set-mask.ts

+3
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ function setMask(
226226
// Trigger input submit
227227
if (e.key === 'Enter') return;
228228

229+
// Allow focus change
230+
if (e.key === 'Tab') return;
231+
229232
// Select all
230233
if (e.ctrlKey && e.key === 'a') return setCaretPosition([firstPositionToNumber, lastPositionToNumber]);
231234

0 commit comments

Comments
 (0)