Close keyboard shortcuts modal on alt+ctrl+h again.

This commit is contained in:
Martin Edenhofer 2016-02-25 08:01:15 +01:00
parent ffe011553d
commit b4ebef16a9
2 changed files with 5 additions and 0 deletions

View file

@ -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')

View file

@ -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'
}
{