Skip to content
Unverified Commit cb93af66 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez Committed by John Molakvoæ (skjnldsv)
Browse files

Ignore Enter key up event on menu button toggles



Like links, buttons generate a "click" event as well as the regular
"keydown" and "keyup" events when pressing Enter. Due to this, if both
the "click" and the "keyup" events are handled, when the menu is open
and Enter is pressed in the toggle the menu is first hidden when the
first event is handled, but then shown again when the second event is
handled. To prevent that only the "click" event should be handled when
the toggle is a button, like it is already done with links.

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 976625fd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment