Skip to content

Commit 18df605

Browse files
committed
Allow the textbox to still be used with the keypress events.
1 parent c8e0ff2 commit 18df605

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

playground/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@
430430
if (event.key === 'Enter') {
431431
event.preventDefault();
432432
moveBtn.click();
433+
} else if (event.target.matches('input')) {
433434
} else if (event.key === 'r' || event.key === 'R') {
434435
event.preventDefault();
435436
moveRandomBtn.click();

0 commit comments

Comments
 (0)