Skip to content

Commit 85282ef

Browse files
committed
minor fixes
1 parent cf82cc3 commit 85282ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ The `onkeydown` handler here uses `checkPhoneKey` to check for the key pressed.
149149

150150
As we know, the `false` value returned from the event handler, assigned using a DOM property or an attribute, such as above, prevents the default action, so nothing appears in the `<input>` for keys that don't pass the test. (The `true` value returned doesn't affect anything, only returning `false` matters)
151151

152-
Please note that special keys, such as `key:Backspace`, `key:Left`, `key:Right`, do not work in the input. That's a side-effect of the strict filter `checkPhoneKey`.
152+
Please note that special keys, such as `key:Backspace`, `key:Left`, `key:Right`, do not work in the input. That's a side-effect of the strict filter `checkPhoneKey`. These keys make it return `false`.
153153

154-
Let's relax it a little bit by allowing `key:Left`, `key:Right` arrows and `key:Delete`, `key:Backspace`:
154+
Let's relax the filter a little bit by allowing `key:Left`, `key:Right` arrows and `key:Delete`, `key:Backspace`:
155155

156156

157157
```html autorun height=60 run

0 commit comments

Comments
 (0)