omega icon indicating copy to clipboard operation
omega copied to clipboard

Firefox: hitting escape disconnects socket connection

Open wachunga opened this issue 13 years ago • 1 comments

A long-standing "feature" in firefox: escape kills any network requests. See https://bugzilla.mozilla.org/show_bug.cgi?id=614304

May be possible for Ω to workaround it.

wachunga avatar Aug 14 '12 07:08 wachunga

A possible work around:

window.addEventListener('keydown', function(e) { (e.keyCode == 27 && e.preventDefault()) })

Found here: https://github.com/sockjs/sockjs-client/issues/18#issuecomment-6218613

xer0x avatar Oct 19 '12 23:10 xer0x