diff options
author | Vijay A <avijayr@protonmail.com> | 2021-08-10 19:22:48 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-08-10 19:56:53 +0530 |
commit | 9ba6631b9353e408d7cefe85372666f6011d4928 (patch) | |
tree | 6a0fa5c77ee863e40c0c6477990d266fd976069e /src/components/settings | |
parent | build: add Ferdi snap package (#1767) (diff) | |
download | ferdium-app-9ba6631b9353e408d7cefe85372666f6011d4928.tar.gz ferdium-app-9ba6631b9353e408d7cefe85372666f6011d4928.tar.zst ferdium-app-9ba6631b9353e408d7cefe85372666f6011d4928.zip |
refactor: Move platform-specific logic for shortcut keys into common location.
Diffstat (limited to 'src/components/settings')
-rw-r--r-- | src/components/settings/settings/EditSettingsForm.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/settings/settings/EditSettingsForm.js b/src/components/settings/settings/EditSettingsForm.js index a4381e37d..87a4ada27 100644 --- a/src/components/settings/settings/EditSettingsForm.js +++ b/src/components/settings/settings/EditSettingsForm.js | |||
@@ -1,5 +1,5 @@ | |||
1 | import { app, systemPreferences } from '@electron/remote'; | 1 | import { app, systemPreferences } from '@electron/remote'; |
2 | import React, { Component, Fragment } from 'react'; | 2 | import React, { Component } from 'react'; |
3 | import PropTypes from 'prop-types'; | 3 | import PropTypes from 'prop-types'; |
4 | import { observer } from 'mobx-react'; | 4 | import { observer } from 'mobx-react'; |
5 | import prettyBytes from 'pretty-bytes'; | 5 | import prettyBytes from 'pretty-bytes'; |
@@ -16,7 +16,7 @@ import { | |||
16 | FRANZ_TRANSLATION, | 16 | FRANZ_TRANSLATION, |
17 | GITHUB_FRANZ_URL, | 17 | GITHUB_FRANZ_URL, |
18 | } from '../../../config'; | 18 | } from '../../../config'; |
19 | import { cmdKey, shiftKey, DEFAULT_APP_SETTINGS, isMac, isWindows } from '../../../environment'; | 19 | import { DEFAULT_APP_SETTINGS, isMac, isWindows, lockFerdiShortcutKey } from '../../../environment'; |
20 | import globalMessages from '../../../i18n/globalMessages'; | 20 | import globalMessages from '../../../i18n/globalMessages'; |
21 | 21 | ||
22 | const messages = defineMessages({ | 22 | const messages = defineMessages({ |
@@ -548,7 +548,7 @@ export default @observer class EditSettingsForm extends Component { | |||
548 | }} | 548 | }} |
549 | > | 549 | > |
550 | <span> | 550 | <span> |
551 | { intl.formatMessage(messages.lockInfo, { lockShortcut: `${cmdKey}+${shiftKey}+L` }) } | 551 | { intl.formatMessage(messages.lockInfo, { lockShortcut: `${lockFerdiShortcutKey(false)}` }) } |
552 | </span> | 552 | </span> |
553 | </p> | 553 | </p> |
554 | </div> | 554 | </div> |