diff options
-rw-r--r-- | src/components/layout/Sidebar.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/layout/Sidebar.js b/src/components/layout/Sidebar.js index bd10ccb4a..90bbe86e9 100644 --- a/src/components/layout/Sidebar.js +++ b/src/components/layout/Sidebar.js | |||
@@ -6,11 +6,14 @@ import { inject, observer } from 'mobx-react'; | |||
6 | import { Link } from 'react-router'; | 6 | import { Link } from 'react-router'; |
7 | 7 | ||
8 | import Tabbar from '../services/tabs/Tabbar'; | 8 | import Tabbar from '../services/tabs/Tabbar'; |
9 | import { ctrlKey } from '../../environment'; | 9 | import { ctrlKey, isMac } from '../../environment'; |
10 | import { workspaceStore } from '../../features/workspaces'; | 10 | import { workspaceStore } from '../../features/workspaces'; |
11 | import { todosStore } from '../../features/todos'; | 11 | import { todosStore } from '../../features/todos'; |
12 | import { todoActions } from '../../features/todos/actions'; | 12 | import { todoActions } from '../../features/todos/actions'; |
13 | 13 | ||
14 | // Platform specific shortcut keys | ||
15 | const settingsShortcutKey = isMac ? ',' : 'P'; | ||
16 | |||
14 | const messages = defineMessages({ | 17 | const messages = defineMessages({ |
15 | settings: { | 18 | settings: { |
16 | id: 'sidebar.settings', | 19 | id: 'sidebar.settings', |
@@ -189,7 +192,7 @@ export default @inject('stores', 'actions') @observer class Sidebar extends Comp | |||
189 | type="button" | 192 | type="button" |
190 | onClick={() => openSettings({ path: 'app' })} | 193 | onClick={() => openSettings({ path: 'app' })} |
191 | className="sidebar__button sidebar__button--settings" | 194 | className="sidebar__button sidebar__button--settings" |
192 | data-tip={`${intl.formatMessage(messages.settings)} (${ctrlKey}+,)`} | 195 | data-tip={`${intl.formatMessage(messages.settings)} (${ctrlKey}+${settingsShortcutKey})`} |
193 | > | 196 | > |
194 | <i className="mdi mdi-settings" /> | 197 | <i className="mdi mdi-settings" /> |
195 | { (this.props.stores.app.updateStatus === this.props.stores.app.updateStatusTypes.AVAILABLE | 198 | { (this.props.stores.app.updateStatus === this.props.stores.app.updateStatusTypes.AVAILABLE |