Editor overlay not closing on 'Esc'
Created by: acmitch
Seems like the below code inside the zen_mode.js.coffee
file is not triggering on close (on click event .zen-leave-link
), therefore never calling the udpateActiveZenArea()
method. I attempted to fix myself, but my coffeescript knowledge and time is limited. Using Google Chrome.
$('body').on 'change', '.zen-toggle-comment', (e) =>
checkbox = e.currentTarget
if checkbox.checked
# Disable other keyboard shortcuts in ZEN mode
Mousetrap.pause()
@udpateActiveZenArea(checkbox)
else
@exitZenMode()