mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Spec helper uses window's keymap
This commit is contained in:
@@ -13,10 +13,7 @@ beforeEach ->
|
||||
afterEach ->
|
||||
$('#jasmine-content').empty()
|
||||
|
||||
specsKeymap = new Keymap
|
||||
specsKeymap.bindDefaultKeys()
|
||||
$(window).on 'keydown', (e) -> specsKeymap.handleKeyEvent(e)
|
||||
specsKeymap.bindKeys '*', 'meta-w': 'close'
|
||||
window.keymap.bindKeys '*', 'meta-w': 'close'
|
||||
$(document).on 'close', -> window.close()
|
||||
|
||||
# Use underscore's definition of equality for toEqual assertions
|
||||
|
||||
Reference in New Issue
Block a user