mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 15:15:12 +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':
|
'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'
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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 = []
|
||||||
|
|
Loading…
Reference in a new issue