Merge pull request #7805 from Razer6/improve/zen
Prevent default action when closing zen mode
This commit is contained in:
commit
fda61a047f
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ class @ZenMode
|
|||
$(document).on 'keydown', (e) =>
|
||||
if e.keyCode is $.ui.keyCode.ESCAPE
|
||||
@exitZenMode()
|
||||
e.preventDefault()
|
||||
|
||||
$(window).on 'hashchange', @updateZenModeFromLocationHash
|
||||
|
||||
|
|
Loading…
Reference in a new issue