Discourse Captures escape from other applications
-
Steps:
- Open a thread with a lightboxed image (eg http://what.thedailywtf.com/t/guy-plays-the-same-song-over-60-000-times-i-like-the-song/3773)
- Click the image
- Click it again to expand the image
- Open an email from Outlook (may also work with other windows that close on escape, Outlook is how I discovered it)
- Press escape to close the window
Expected
the window closes, Discourse doesn't change since it doesn't have focusActual
The window closes, so does the lightboxed image
-
BELGIUM!
I didn't get a repro first: my outlook mail was sitting on my other monitor and no issue then.
Moved it to the same monitor as chrome containing the shitboxed image and then the shitbox is closed. Even if chrome is not the active window.
-
i think that's a chrome bug.
try this. make two chrome windows, load a long document into each one. mouse over the one that is not active and scroll down with the mouse wheel.
result: the document in the inactive window scrolls down.
i suspect chrome hooks some part of windows and made its scope rather larger than it had to be.
-
Maybe the popup window auto-closes if the main window gets focus?
The scroll behaviour is what I'd expect, but that's linux convention: The scroll wheel affects the mouseover control, rather than the control with focus.
-
The scroll behaviour is what I'd expect, but that's linux convention: The scroll wheel affects the mouseover control, rather than the control with focus.
I'm not saying that it was unexpected behavior, just that it's not windows standard behavior so chrome had to do something to get it and if they did it a bit too big... ;-)
-
- No repro in IE 11.
- Repro in Chrome 37.
Which browser were you using?
-
hmm... OP didn't specify, but @Luhmann and @accalia both posted Repro with Chrome and @accalia posted theory on providence of bug.
so... @jaloopa, what browser were you using?
-
- Mixed repro in IE 10
- No repro when tapping Esc
- Repro when holding Esc, then releasing Esc when browser had focus (lightbox dismissed on release)
- Repro in Firefox 32
- Mixed repro in IE 10
-
Discovered in chrome. Probably the latest version but it's my work pc so can't check right now