ISSUE-23: Should Key Identifiers prioritize uppercase characters
Key Indentifier Case
Should Key Identifiers prioritize uppercase characters
- State:
- CLOSED
- Product:
- HISTORICAL: DOM3 Events [All Bugs and Issues use Bugzilla: http://tinyurl.com/Bugs-DOM3Events]
- Raised by:
- Doug Schepers
- Opened on:
- 2008-06-29
- Description:
- In the current draft of Key Identifiers, including the new algorithm wording, there is a bias toward uppercase characters. Essentially, if a key is pressed that gives a character codepoint which is lowercase, for which there is an uppercase equivalent, the uppercase codepoint (or character) is returned instead. What is the use case here?
Case is a peculiar feature of Latinate languages, and it's not clear that special-casing it makes it easier to make reliable script. More reliable and flexible comparisons can be made easily; compare the following pseudocode snippets:
// keyIdentifier reports only "Q", and forces all upper and lower case characters to the uppercase value
if ( evt.keyIdentifier == "Q" ) { ... }
// keyIdentifier reports both "Q" and "q", and allows authors to distinguish upper and lower case letters or lump them together, as desired
if ( evt.keyIdentifier.toLowerCase() == "q" ) { ... }
Converting to uppercase strikes me as needless legacy from keyCode/charCode. Is there some pragmatic reason to force this casting?
- Related Actions Items:
- No related actions
- Related emails:
- Re: ISSUE-23 (Key Indentifier Case): Should Key Identifiers prioritize uppercase characters [DOM3 Events] (from andrewc@vicnet.net.au on 2008-06-30)
- Re: ISSUE-23 (Key Indentifier Case): Should Key Identifiers prioritize uppercase characters [DOM3 Events] (from cam@mcc.id.au on 2008-06-30)
- Re: ISSUE-23 (Key Indentifier Case): Should Key Identifiers prioritize uppercase characters [DOM3 Events] (from andrewc@vicnet.net.au on 2008-06-30)
- Re: ISSUE-23 (Key Indentifier Case): Should Key Identifiers prioritize uppercase characters [DOM3 Events] (from cam@mcc.id.au on 2008-06-30)
- Re: ISSUE-23 (Key Indentifier Case): Should Key Identifiers prioritize uppercase characters [DOM3 Events] (from andrewc@vicnet.net.au on 2008-06-30)
- Re: ISSUE-23 (Key Indentifier Case): Should Key Identifiers prioritize uppercase characters [DOM3 Events] (from cam@mcc.id.au on 2008-06-30)
- Re: ISSUE-23 (Key Indentifier Case): Should Key Identifiers prioritize uppercase characters [DOM3 Events] (from andrewc@vicnet.net.au on 2008-06-30)
- Re: ISSUE-23 (Key Indentifier Case): Should Key Identifiers prioritize uppercase characters [DOM3 Events] (from cam@mcc.id.au on 2008-06-30)
- Re: ISSUE-23 (Key Indentifier Case): Should Key Identifiers prioritize uppercase characters [DOM3 Events] (from timeless@gmail.com on 2008-06-30)
- Re: ISSUE-23 (Key Indentifier Case): Should Key Identifiers prioritize uppercase characters [DOM3 Events] (from schepers@w3.org on 2008-06-29)
- Re: ISSUE-23 (Key Indentifier Case): Should Key Identifiers prioritize uppercase characters [DOM3 Events] (from cam@mcc.id.au on 2008-06-29)
- ISSUE-23 (Key Indentifier Case): Should Key Identifiers prioritize uppercase characters [DOM3 Events] (from sysbot+tracker@w3.org on 2008-06-29)
Related notes:
Key Events will return appropriate character for current state of key.
Doug Schepers, 19 Oct 2009, 06:27:44Display change log