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() return if !@authenticate()
@bind('keyboard_shortcuts_close', @close)
content: -> content: ->
App.view('keyboard_shortcuts')( App.view('keyboard_shortcuts')(
areas: App.Config.get('keyboard_shortcuts') areas: App.Config.get('keyboard_shortcuts')

View file

@ -73,6 +73,9 @@ App.Config.set(
hotkeys: true hotkeys: true
description: 'List of shortcuts' description: 'List of shortcuts'
callback: -> callback: ->
if window.location.hash is '#keyboard_shortcuts'
App.Event.trigger('keyboard_shortcuts_close')
return
window.location.hash = '#keyboard_shortcuts' window.location.hash = '#keyboard_shortcuts'
} }
{ {