mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-24 22:42:25 -05:00
20 lines
689 B
CoffeeScript
20 lines
689 B
CoffeeScript
ModalView = require 'views/core/ModalView'
|
|
template = require 'templates/play/level/modal/keyboard_shortcuts'
|
|
|
|
module.exports = class KeyboardShortcutsModal extends ModalView
|
|
id: 'keyboard-shortcuts-modal'
|
|
template: template
|
|
|
|
isMac: -> false
|
|
|
|
getRenderData: ->
|
|
c = super()
|
|
c.ctrl = if @isMac() then '⌘' else '^'
|
|
c.ctrlName = if @isMac() then 'Cmd' else 'Ctrl'
|
|
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'
|
|
c.shift = $.i18n.t 'keyboard_shortcuts.shift'
|
|
c
|