Opened 15 years ago

Closed 15 years ago

#3280 closed defect (duplicate)

Stray keyup event after menu closed via keyboard.

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


Here is a known example:

  1. a popup menu is invoked.
  2. a menu item is selected via the spacebar,
  3. the menu item activation happens when the space key is pressed down,
  4. the menu is closed
  5. focus returns to wherever it was before the menu popped up
    • it appears the browser now has a stray keyup event to deal with...
  6. the problem can occur if the focus returns to a dom node.
  7. the browser maps the stray keyup event to the currently focused node.
  8. if the newly focused node has an onclick handler, it will fire.
    • presumably a space bar keyup event can fire an onclick generally (depends on browser?).
    • presumably if the node is listening for keyup events this can be a potential problem for any keypress event that closes the menu.

This is confirmed to happen at least in FF2.

(I think this blocks 3062)

Change History (1)

comment:1 Changed 15 years ago by davidb

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.