issues
search
idoros
/
zeejs
Layering in HTML
MIT License
7
stars
0
forks
source link
Catch escape on top layer + tooltip dismiss on escape
#35
Closed
idoros
closed
2 years ago
idoros
commented
4 years ago
Allow layer to handle escape press
[ ] implement layer
escHandler
(with custom event to allow it to stopPropagation/preventDefault)
capture escape press on document
if target is contained within the top layer
let event go through and catch on layer when it propagate back (check if canceled and remove listener - nextAnimationFrame?)
if event isn't prevented or stopped then call top layer
escHandler
if target is outside then call top layer
escHandler
[ ] implement dismiss with escape for Tooltip
Allow layer to handle escape press
escHandler
(with custom event to allow it to stopPropagation/preventDefault)escHandler
escHandler