[wp-trac] [WordPress Trac] #26854: Don't close fullscreen mode on Esc when the media modal is shown
WordPress Trac
noreply at wordpress.org
Mon Feb 3 04:12:56 UTC 2014
#26854: Don't close fullscreen mode on Esc when the media modal is shown
--------------------------+------------------------------
Reporter: kovshenin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by azaozz):
Been thinking about this: the problem is there's no "priority" on the
attached events. Doing `stopImmediatePropagation()` or returning `false`
only works for the handlers attached after the current one. A handler
attached before the current one fires anyways.
The only way to manage the firing order is by controlling when the script
is outputted or attaching some to keyup, some to keydown, some to the body
and some to the document.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26854#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list