codecombat/app/views/play/level/modal/KeyboardShortcutsModal.coffee

21 lines
689 B
CoffeeScript
Raw Normal View History

ModalView = require 'views/core/ModalView'
template = require 'templates/play/level/modal/keyboard_shortcuts'
2014-07-17 20:22:26 -04:00
module.exports = class KeyboardShortcutsModal extends ModalView
id: 'keyboard-shortcuts-modal'
template: template
2014-10-06 16:38:42 -04:00
isMac: -> false
getRenderData: ->
c = super()
c.ctrl = if @isMac() then '' else '^'
c.ctrlName = if @isMac() then 'Cmd' else 'Ctrl'
2014-10-06 16:38:42 -04:00
c.alt = if @isMac() then '' else ''
c.altName = if @isMac() then 'Opt' else 'Alt'
c.enter = $.i18n.t 'keyboard_shortcuts.enter'
c.space = $.i18n.t 'keyboard_shortcuts.space'
c.escapeKey = $.i18n.t 'keyboard_shortcuts.escape'
2014-08-27 20:26:56 -04:00
c.shift = $.i18n.t 'keyboard_shortcuts.shift'
c