diff options
Diffstat (limited to 'src/features/workspaces/components/WorkspaceDrawerItem.tsx')
-rw-r--r-- | src/features/workspaces/components/WorkspaceDrawerItem.tsx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/features/workspaces/components/WorkspaceDrawerItem.tsx b/src/features/workspaces/components/WorkspaceDrawerItem.tsx index 74ca2797d..cf8c3b2ba 100644 --- a/src/features/workspaces/components/WorkspaceDrawerItem.tsx +++ b/src/features/workspaces/components/WorkspaceDrawerItem.tsx | |||
@@ -7,6 +7,7 @@ import { noop } from 'lodash'; | |||
7 | import { Menu } from '@electron/remote'; | 7 | import { Menu } from '@electron/remote'; |
8 | import { MenuItemConstructorOptions } from 'electron'; | 8 | import { MenuItemConstructorOptions } from 'electron'; |
9 | import { altKey, cmdOrCtrlShortcutKey } from '../../../environment'; | 9 | import { altKey, cmdOrCtrlShortcutKey } from '../../../environment'; |
10 | import { acceleratorString } from '../../../jsUtils'; | ||
10 | 11 | ||
11 | const messages = defineMessages({ | 12 | const messages = defineMessages({ |
12 | noServicesAddedYet: { | 13 | noServicesAddedYet: { |
@@ -118,13 +119,10 @@ class WorkspaceDrawerItem extends Component<IProps> { | |||
118 | } | 119 | } |
119 | }} | 120 | }} |
120 | onKeyDown={noop} | 121 | onKeyDown={noop} |
121 | data-tip={`${ | 122 | data-tip={acceleratorString( |
122 | shortcutIndex <= 9 | 123 | shortcutIndex, |
123 | ? `(${cmdOrCtrlShortcutKey(false)}+${altKey( | 124 | `${cmdOrCtrlShortcutKey(false)}+${altKey(false)}`, |
124 | false, | 125 | )} |
125 | )}+${shortcutIndex})` | ||
126 | : '' | ||
127 | }`} | ||
128 | > | 126 | > |
129 | <span | 127 | <span |
130 | className={classnames([ | 128 | className={classnames([ |