Opened 12 years ago

Closed 12 years ago

Last modified 9 years ago

#3942 closed defect (fixed)

space down causes IE to scroll on onklick event

Reported by: simonjb Owned by: simonjb
Priority: high Milestone: 0.9
Component: Dijit Version: 0.9
Keywords: Cc: bill, Becky Gibson
Blocked By: Blocking:

Description

When space down is pressed on an element registered to an "onklick" handler on IE the browser window scrolls. To reproduce on the Menu:

  • open test_Menu.html in IE (6 or 7)
  • open the context menu
  • press space on a menu item
  • window scrolls

To reproduce on the attached test file:

  • open it in IE (6 or 7)
  • tab to "klick me"
  • press space
  • window scrolls

Attachments (2)

onklick_ie_scroll.html (724 bytes) - added by simonjb 12 years ago.
_Widget.diff (529 bytes) - added by simonjb 12 years ago.

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by simonjb

Attachment: onklick_ie_scroll.html added

Changed 12 years ago by simonjb

Attachment: _Widget.diff added

comment:1 Changed 12 years ago by simonjb

Attached proposed solution.

comment:2 Changed 12 years ago by simonjb

Status: newassigned

comment:3 Changed 12 years ago by simonjb

Resolution: fixed
Status: assignedclosed

(In [9911]) Fixes #3942: space down causes IE to scroll on onklick event.

comment:4 Changed 9 years ago by bill

(In [21892]) dojo.stopEvent() prevents dojo.connect()'d handlers from seeing the onkeydown event; use preventDefault() instead. preventDefault() still solves the problem where IE scrolls on space bar. Fixes #11007, refs #3942 !strict.

Note: See TracTickets for help on using tickets.