add shortcuts, help dialog and start on add-action dialog

This commit is contained in:
Reinier Balt 2013-06-27 22:47:34 +02:00
parent 972210326a
commit 8e0013d0df
7 changed files with 63 additions and 10 deletions

View file

@ -41,3 +41,15 @@ $ ->
mouseTrapRails.toggleHints() if mouseTrapRails.showOnLoad
Mousetrap.bind '?', -> $('div#tracks-shortcuts-dialog').modal()
Mousetrap.bind 'a', -> $('div#tracks-add-action-dialog').modal()
# GO TO
# Mousetrap.bind 'g h', TracksApp.go_home
Mousetrap.bind 'g c', -> alert("go context")
# Mousetrap.bind 'g C', TracksApp.go_contexts
Mousetrap.bind 'g t', -> alert("go tag")
Mousetrap.bind 'g p', -> alert("go project")
# Mousetrap.bind 'g P', TracksApp.go_projects
# VIEW
Mousetrap.bind 'v p', -> alert("group by project")
Mousetrap.bind 'v c', -> alert("group by context")