mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-30 20:07:48 +08:00
fix(keymap): use atom-keymap 5.1.11
This commit is contained in:
parent
512c645123
commit
9ca4e42b68
3 changed files with 4 additions and 5 deletions
|
@ -7,7 +7,7 @@
|
|||
'body':
|
||||
'cmd-m': 'application:minimize'
|
||||
'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-ctrl-f': 'window:toggle-full-screen'
|
||||
'alt-cmd-ctrl-m': 'application:zoom'
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"dependencies": {
|
||||
"asar": "^0.5.0",
|
||||
"async": "^0.9",
|
||||
"atom-keymap": "6.1.0",
|
||||
"atom-keymap": "5.1.11",
|
||||
"babel-core": "^6.0.20",
|
||||
"babel-preset-es2015": "^6.0.15",
|
||||
"babel-preset-react": "^6.0.15",
|
||||
|
|
|
@ -43,9 +43,8 @@ class AccountStore
|
|||
return commands
|
||||
|
||||
_selectAccountByIndex: (index) =>
|
||||
@_index = Math.min(@_accounts.length - 1, Math.max(0, index))
|
||||
atom.config.set(saveIndexKey, @_index)
|
||||
@trigger()
|
||||
index = Math.min(@_accounts.length - 1, Math.max(0, index))
|
||||
Actions.selectAccountId(@_accounts[index].id)
|
||||
|
||||
_load: =>
|
||||
@_accounts = []
|
||||
|
|
Loading…
Reference in a new issue