[Bug 23907] New: How do web apps distinguish if a keydown event causes text input?

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: travil@microsoft.com
          Reporter: masayuki@d-toybox.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org

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.

Received on Monday, 25 November 2013 08:45:36 UTC