Merge pull request #7805 from Razer6/improve/zen

Prevent default action when closing zen mode
This commit is contained in:
Robert Schilling 2014-09-20 18:17:19 +02:00
commit fda61a047f

View file

@ -16,6 +16,7 @@ class @ZenMode
$(document).on 'keydown', (e) =>
if e.keyCode is $.ui.keyCode.ESCAPE
@exitZenMode()
e.preventDefault()
$(window).on 'hashchange', @updateZenModeFromLocationHash