Prevent default action when closing zen mode

This commit is contained in:
Robert Schilling 2014-09-20 18:15:36 +02:00
parent 8fd0d74bd8
commit d5badd7ef6

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