mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Load user keymaps after packages
This allows user keymaps to override the default bindings provided by packages. Refs #261
This commit is contained in:
@@ -34,6 +34,7 @@ class Config
|
||||
@requireUserInitScript()
|
||||
atom.loadThemes()
|
||||
atom.loadPackages()
|
||||
keymap.loadUserKeymaps()
|
||||
|
||||
loadUserConfig: ->
|
||||
if fs.exists(@configFilePath)
|
||||
|
||||
@@ -63,7 +63,6 @@ windowAdditions =
|
||||
@keymap = new Keymap()
|
||||
@keymap.bindDefaultKeys()
|
||||
@keymap.loadBundledKeymaps()
|
||||
@keymap.loadUserKeymaps()
|
||||
|
||||
@_handleKeyEvent = (e) => @keymap.handleKeyEvent(e)
|
||||
$(document).on 'keydown', @_handleKeyEvent
|
||||
|
||||
Reference in New Issue
Block a user