GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Keyboard events: keydown filtering example can't block IME-composed input (Korean/Japanese/Chinese) · Issue #3978 · javascript-tutorial/en.javascript.info Open DescriptionArticleKeyboard: keydown and keyup — the "Default actions" section, phone-number filter example: <input onkeydown="return checkPhoneKey(event.key)" placeholder="Phone, please" type="tel"> ProblemThe example (and the surrounding text) implies that returning With an IME active:
As a result, Korean/Japanese/Chinese characters pass straight through the filter and appear in the field. This was reported by a Korean reader of the Korean translation (ko.javascript.info), and is easy to reproduce by switching to a Korean IME and typing into the demo. SuggestionAdd a short note after the example, along these lines:
This ties in nicely with the introduction of the article, which already recommends the Happy to send a PR if the note sounds good. Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |