diff options
author | 2023-05-28 22:11:03 +0530 | |
---|---|---|
committer | 2023-05-28 22:25:33 +0530 | |
commit | b631f0f664dc85c81032b02eebdd8eb1e8796a81 (patch) | |
tree | e4a50a32f7836953c0a6af34389fe9898e24215a /src/features | |
parent | Fix issues reported by sonarqube linter (diff) | |
download | ferdium-app-b631f0f664dc85c81032b02eebdd8eb1e8796a81.tar.gz ferdium-app-b631f0f664dc85c81032b02eebdd8eb1e8796a81.tar.zst ferdium-app-b631f0f664dc85c81032b02eebdd8eb1e8796a81.zip |
Allow the 10th service to also be accessible via keyboard shortcut combo
Diffstat (limited to 'src/features')
-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([ |