Skip to content

Commit 54347b7

Browse files
committed
minor fixes
1 parent a40ca9a commit 54347b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2-ui/3-event-details/7-keyboard-events/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Let's relax the filter a little bit by allowing arrow keys `key:Left`, `key:Righ
157157
<script>
158158
function checkPhoneKey(key) {
159159
return (key >= '0' && key <= '9') ||
160-
['+','(',')','-','ArrowLeft','ArrowRight','Delete','Backspace'].includes(key);
160+
['+','(',')','-',*!*'ArrowLeft','ArrowRight','Delete','Backspace'*/!*].includes(key);
161161
}
162162
</script>
163163
<input onkeydown="return checkPhoneKey(event.key)" placeholder="Phone, please" type="tel">

0 commit comments

Comments
 (0)