mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 15:46:08 +10:00
Merge pull request #7805 from Razer6/improve/zen
Prevent default action when closing zen mode
This commit is contained in:
@@ -16,6 +16,7 @@ class @ZenMode
|
||||
$(document).on 'keydown', (e) =>
|
||||
if e.keyCode is $.ui.keyCode.ESCAPE
|
||||
@exitZenMode()
|
||||
e.preventDefault()
|
||||
|
||||
$(window).on 'hashchange', @updateZenModeFromLocationHash
|
||||
|
||||
|
||||
Reference in New Issue
Block a user