diff options
author | 2021-08-15 20:27:45 +0530 | |
---|---|---|
committer | 2021-08-15 15:13:35 +0000 | |
commit | 59e503fdc61802bd9f9fac2c030c2192bd95c4ce (patch) | |
tree | b19096beb9125baf9a3ed14e3197908a190eb308 /src/features/workspaces/components | |
parent | Downgraded 'sqlite3' back to '5.0.0' since it doesn't compile on macos (in de... (diff) | |
download | ferdium-app-59e503fdc61802bd9f9fac2c030c2192bd95c4ce.tar.gz ferdium-app-59e503fdc61802bd9f9fac2c030c2192bd95c4ce.tar.zst ferdium-app-59e503fdc61802bd9f9fac2c030c2192bd95c4ce.zip |
fix: Fix issue with shortcut accelerators not working on macos where symbols were used for shift/alt keys
Diffstat (limited to 'src/features/workspaces/components')
-rw-r--r-- | src/features/workspaces/components/WorkspaceDrawerItem.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/workspaces/components/WorkspaceDrawerItem.js b/src/features/workspaces/components/WorkspaceDrawerItem.js index fff607330..252158364 100644 --- a/src/features/workspaces/components/WorkspaceDrawerItem.js +++ b/src/features/workspaces/components/WorkspaceDrawerItem.js | |||
@@ -5,7 +5,7 @@ import { observer } from 'mobx-react'; | |||
5 | import injectSheet from 'react-jss'; | 5 | import injectSheet from 'react-jss'; |
6 | import classnames from 'classnames'; | 6 | import classnames from 'classnames'; |
7 | import { defineMessages, intlShape } from 'react-intl'; | 7 | import { defineMessages, intlShape } from 'react-intl'; |
8 | import { altKey, shortcutKey } from '../../../environment'; | 8 | import { altKey, cmdOrCtrlShortcutKey } from '../../../environment'; |
9 | 9 | ||
10 | const messages = defineMessages({ | 10 | const messages = defineMessages({ |
11 | noServicesAddedYet: { | 11 | noServicesAddedYet: { |
@@ -125,7 +125,7 @@ class WorkspaceDrawerItem extends Component { | |||
125 | onContextMenuEditClick && contextMenu.popup(getCurrentWindow()) | 125 | onContextMenuEditClick && contextMenu.popup(getCurrentWindow()) |
126 | } | 126 | } |
127 | data-tip={`${ | 127 | data-tip={`${ |
128 | shortcutIndex <= 9 ? `(${shortcutKey(false)}+${altKey}+${shortcutIndex})` : '' | 128 | shortcutIndex <= 9 ? `(${cmdOrCtrlShortcutKey(false)}+${altKey(false)}+${shortcutIndex})` : '' |
129 | }`} | 129 | }`} |
130 | > | 130 | > |
131 | <span | 131 | <span |