Sha256: b6e69b992322496afcd8bdc2abcb6f3e0565fb1906bad684ed96c460ce2ec784

Contents?: true

Size: 910 Bytes

Versions: 1

Compression:

Stored size: 910 Bytes

Contents

class @KeyboardShortcutsModal
  
  constructor: ->
    @template = HandlebarsTemplates['keyboard_shortcuts']
    @shortcuts = [
        keys: ['n', 't']
        name: 'New Ticket'
      , 
        keys: ['R', 't']
        name: 'Refresh Tickets'
      
      , 
        keys: ['G']
        name: 'Go to...'
      
      , 
        keys: ['g', 'p']
        name: 'Go to Projects'
      , 
        keys: ['g', 'q']
        name: 'Go to Pull Requests'
      , 
        keys: ['g', 'i']
        name: 'Go to ITSMs'
      , 
        keys: ['g', 't', 'r']
        name: 'Go to Testing Report'
      , 
        keys: ['g', 'n', 't']
        name: 'Go to New Ticket'
      , 
        keys: ['g', 'u']
        name: 'Go to Users'
    
      , 
        keys: ['?']
        name: 'Keyboard shortcuts'
    ]
  
  show: ->
    $modal = $(@template(shortcuts: @shortcuts)).modal()
    $modal.on 'hidden', -> $modal.remove()

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
houston-core-0.5.0.beta1 app/assets/javascripts/app/views/keyboard_shortcuts_modal.coffee