fix(keymap): use atom-keymap 5.1.11

This commit is contained in:
Evan Morikawa 2015-11-06 15:16:57 -08:00
parent ff188253ab
commit d54b1929e9
3 changed files with 4 additions and 5 deletions

View file

@ -7,7 +7,7 @@
'body': 'body':
'cmd-m': 'application:minimize' 'cmd-m': 'application:minimize'
'cmd-h': 'application:hide' 'cmd-h': 'application:hide'
'cmd-shift-1': 'application:show-main-window' 'cmd-0': 'application:show-main-window'
'cmd-alt-h': 'application:hide-other-applications' 'cmd-alt-h': 'application:hide-other-applications'
'cmd-ctrl-f': 'window:toggle-full-screen' 'cmd-ctrl-f': 'window:toggle-full-screen'
'alt-cmd-ctrl-m': 'application:zoom' 'alt-cmd-ctrl-m': 'application:zoom'

View file

@ -15,7 +15,7 @@
"dependencies": { "dependencies": {
"asar": "^0.5.0", "asar": "^0.5.0",
"async": "^0.9", "async": "^0.9",
"atom-keymap": "6.1.0", "atom-keymap": "5.1.11",
"babel-core": "^6.0.20", "babel-core": "^6.0.20",
"babel-preset-es2015": "^6.0.15", "babel-preset-es2015": "^6.0.15",
"babel-preset-react": "^6.0.15", "babel-preset-react": "^6.0.15",

View file

@ -43,9 +43,8 @@ class AccountStore
return commands return commands
_selectAccountByIndex: (index) => _selectAccountByIndex: (index) =>
@_index = Math.min(@_accounts.length - 1, Math.max(0, index)) index = Math.min(@_accounts.length - 1, Math.max(0, index))
atom.config.set(saveIndexKey, @_index) Actions.selectAccountId(@_accounts[index].id)
@trigger()
_load: => _load: =>
@_accounts = [] @_accounts = []