Reset key bindings in AtomEnvironment::reset

This commit is contained in:
Nathan Sobo
2015-10-05 16:50:11 -06:00
parent d34968b750
commit c4cfbab408
3 changed files with 4 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
"electronVersion": "0.30.7",
"dependencies": {
"async": "0.2.6",
"atom-keymap": "^6.0.0",
"atom-keymap": "^6.1.0",
"babel-core": "^5.8.21",
"bootstrap": "^3.3.4",
"clear-cut": "^2.0.1",

View File

@@ -96,7 +96,6 @@ beforeEach ->
assert: atom.assert.bind(atom)
})
atom.themes.workspace = atom.workspace
atom.keymaps.keyBindings = _.clone(keyBindingsToRestore)
atom.commands.restoreSnapshot(commandsToRestore)
atom.styles.restoreSnapshot(styleElementsToRestore)
atom.views.clearDocumentRequests()

View File

@@ -227,6 +227,9 @@ class AtomEnvironment extends Model
@config.reset()
@setConfigSchema()
@keymaps.clear()
@keymaps.loadBundledKeymaps()
###
Section: Event Subscription
###