Close keyboard shortcuts modal on alt+ctrl+h again.
This commit is contained in:
parent
ffe011553d
commit
b4ebef16a9
2 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,8 @@ class Index extends App.ControllerModal
|
|||
|
||||
return if !@authenticate()
|
||||
|
||||
@bind('keyboard_shortcuts_close', @close)
|
||||
|
||||
content: ->
|
||||
App.view('keyboard_shortcuts')(
|
||||
areas: App.Config.get('keyboard_shortcuts')
|
||||
|
|
|
@ -73,6 +73,9 @@ App.Config.set(
|
|||
hotkeys: true
|
||||
description: 'List of shortcuts'
|
||||
callback: ->
|
||||
if window.location.hash is '#keyboard_shortcuts'
|
||||
App.Event.trigger('keyboard_shortcuts_close')
|
||||
return
|
||||
window.location.hash = '#keyboard_shortcuts'
|
||||
}
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue