Closed Bug 161449 Opened 22 years ago Closed 22 years ago

Non-ASCII shortcuts for select elements in html forms

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Future

People

(Reporter: 3.14, Assigned: yuanyi21)

References

()

Details

(Keywords: intl)

Attachments

(1 file, 1 obsolete file)

Happening in all versions I have seen including current nightlies. Probably a
dupe, but I cannot find it.

Look at any form which has a select field (like the URL above). Using
letter-keys you can jump to the first entry starting with that letter. This does
not work for non-ASCII characters. Most often I see this for country selection,
where I press ö for Österreich (german for Austria).

pi
Kyle, will you take this?
Assignee: aaronl → kyle.yuan
Blocks: atfmeta
Hmm, I think this double-bytes navigation should be a future work.
Kyle, do you mean you want to mark it "Future" in the target milestone? If
that's what you mean, then you can also mark the Priority P1-P5, and select the
"accept bug" radio button.
Yes, I know this rule, but I'm afraid I'll do that in a far future :(
Target Milestone: --- → Future
Frank, do you have someone on the i18n team who can take this?
Assignee: kyle.yuan → ftang
if bug 150590 and bug 168281 got fixed, this one would be fixed easily. 
taking...
Assignee: ftang → kyle.yuan
Depends on: 150590, 168281
Keywords: intl
Kyle, do you mean you want the bug ASSIGNED to you by "taking"?

BTW: In comment 2, you talk about "double-bytes". ö is just one byte in
iso-8859-1. Or do I mix something up?

pi
QA Contact: sairuh → ruixu
QA Contact: ruixu → ylong
Yes, this bug is assigned to me. I want to solve this problem entirely no matter
the char is single-byte or double byte. 
Status: NEW → ASSIGNED
Attached patch fix nsCRT::ToLower bug (obsolete) — Splinter Review
nsCRT::ToLower(char aChar) use this method to convert a char to lower case:
-- return (char)kUpper2Lower[aChar];
this will be failed when aChar >= 128

I want to fix this Non-ASCII char problem here and file a new bug for the IME
support, because we need to support IME not only for <select>, but also for
other widget, such as <menu>, <tree>, <listbox>

Seeking r=
No longer depends on: 168281
seeking r=
Attachment #100825 - Attachment is obsolete: true
Comment on attachment 100839 [details] [diff] [review]
fix nsCRT::ToLower bugs and use |ToLowerCase()| instead of |nsCRT::ToLower()|

r=aaronl

Thank you for also fixing nsCRT::ToLower() even though you don't use it in this
code anymore.
Attachment #100839 - Flags: review+
Comment on attachment 100839 [details] [diff] [review]
fix nsCRT::ToLower bugs and use |ToLowerCase()| instead of |nsCRT::ToLower()|

sr=alecf
nice work.
I'd love to get rid of kUpperToLower/etc entirely and just use a similar
formula to the stuff in string/public
Attachment #100839 - Flags: superreview+
yeah, I also see what are probably other invalid casts to the 8-bit nsCRT::ToLower:
http://lxr.mozilla.org/seamonkey/search?string=nscrt%3A%3Atolower

(though maybe at this point we should just file a new bug for those)
checked in!

will file a new bug as per comment 12 and 13.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2b) Gecko/2002092904

Marking verified as reporter.

pi
Status: RESOLVED → VERIFIED
Component: Keyboard: Navigation → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: