[Bug 23907] New: How do web apps distinguish if a keydown event causes text input?
| Newsgroups | gmane.comp.web.dom.general |
|---|---|
| Message-ID | <[email protected]/Bugs/Public/> |
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23907
Bug ID: 23907
Summary: How do web apps distinguish if a keydown event causes
text input?
Product: WebAppsWG
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: DOM3 Events
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
Even there is beforeinput event, web applications may want to distinguish
whether a keydown event causes text input or not at keydown event handler.
For example, if web apps wants to implement text editor and their own shortcut
keys, if a key event will cause text input, it shouldn't be handled as shortcut
key at keydown event.
E.g., Ctrl+Shift+2 of Persian keyboard layout causes inputting ZWNJ.
https://bugzilla.mozilla.org/show_bug.cgi?id=414130
So, in such case, text input may be preferred rather than kicking shortcut.
I'd like to suggest a new attribute KeyboardEvent.inputText as bool.
--
You are receiving this mail because:
You are on the CC list for the bug.