Closed Bug 133649 Opened 23 years ago Closed 23 years ago

Space bar on button causes page to scroll instead of activating

Categories

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

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED WONTFIX

People

(Reporter: taralx, Assigned: aaronlev)

References

()

Details

(Whiteboard: WONTFIX?)

From Bugzilla Helper: User-Agent: Mozilla/5.0 Galeon/1.2.0 (X11; Linux i686; U;) Gecko/20020313 BuildID: 0.9.9 If you tab to either of the big orange buttons on the page and push the space bar, gecko will attempt to scroll the view instead of activating the button. This is most annoying, since buttons can usually be activated by pushing the space bar. Reproducible: Always Steps to Reproduce: 1. Go to URL. 2. Make window small. 3. Tab to first orange button. 4. Push space bar. Actual Results: Window scrolls. Expected Results: Login data should be submitted.
Also verified on Mozilla 0.9.9 (so it's not a galeon problem).
The "button" is not really a form button, but rather an image inside an link tag which activates Javascript that submits the form. The standard behavior in this case (image in a link tag) seems to be to scroll when you hit the spacebar. You can still hit enter (on the image) to submit the form.
This still seems to be strange behavior, although much more understandable. Is it therefore the official position that the current behavior is the correct one? I admit that it would be confusing to change the behavior only for images in links.
QA Contact: madhur → rakeshmishra
tab to a link and press "space" - it's the same.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
We're talking about BUTTONS here. Tab to a button and push "space" and it activates. There's an interface parity problem here.
Status: RESOLVED → UNCONFIRMED
Resolution: WONTFIX → ---
when is a button not a button? when it's an image ==> keyboard nav
Assignee: joki → aaronl
Component: Event Handling → Keyboard Navigation
QA Contact: rakeshmishra → sairuh
Whiteboard: WONTFIX?
It's a link, that's fooling you into thinking it's a button. Space bar doesn't activate links. If it did, it wouldn't work very well for page down, because it's usually a link that's focused in a page. We feel your pain, but if the page author is going to avoid the semantics of button, and avoid using input type=image, there's nothing we can do about it. If you use Enter, you're okay.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → WONTFIX
mass-verifying Wontfix bugs. mail filter string for bugspam: Tursiopstruncatus
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.