Closed Bug 174888 Opened 23 years ago Closed 22 years ago

Active Accessibility: unable to get keyboard shortcut for textbox node

Categories

(Core :: Disability Access APIs, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dsirnapalli, Assigned: yuanyi21)

References

Details

Attachments

(1 file)

Enter the following code in a xul file and open it in Mozilla. // xultextbox.xul <description> <html:b> Testing XUL Textbox for Accessibility.. </html:b> </description> <box orient="vertical" flex="1"> // TextBox with default text <textbox value="Default text..." accesskey="D"/> <spacer flex="1"/> </box> Open Inspect tool. Tab to the above textbox node.Watch the keyboard shortcut in Inspect tool. It shows empty string. It should show "Alt+D".
Blocks: atfmeta
it's because the accesskey is an attribute of textbox, but we use its anonymous child html:input to create the accessible object, so we can't get the accesskey from html:input. maybe we should introduce a new class for XUL textbox.
Kyle, I think we should just be able to change the binding so it says xbl:inherits="accesskey", so that the accesskey gets copied onto the anonyous html:input
aaron, you are right.
Comment on attachment 103271 [details] [diff] [review] inherit accesskey from textbox r=aaronl
Attachment #103271 - Flags: review+
Comment on attachment 103271 [details] [diff] [review] inherit accesskey from textbox sr=bzbarsky
Attachment #103271 - Flags: superreview+
-> me
Assignee: aaronl → kyle.yuan
checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: