Files
atom/spec/spec-helper.coffee
Nathan Sobo c75c3555bb Meta+s triggers save on Editor.
Still can't save buffers that don't have a url.
2011-12-16 16:30:51 -08:00

14 lines
322 B
CoffeeScript

$ = require 'jquery'
_ = require 'underscore'
window.app = new (require 'app')
window.keydown = (pattern) ->
keys = pattern.split '+'
$.Event "keydown",
ctrlKey: 'ctrl' in keys
altKey: 'alt' in keys
shiftKey: 'shift' in keys
metaKey: 'meta' in keys
which: _.last(keys).toUpperCase().charCodeAt 0