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()
|
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')
|
||||||
|
|
|
@ -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'
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue