aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-10-27 16:08:48 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2017-10-27 16:08:48 +0200
commit857f0c2abe562252d5e514d932a57b038b7d38b6 (patch)
tree8cc087daecebb19b04c0d15928d96150c070bcd1 /src
parentfix(Shortcuts): Use `Alt+[0-9]` for tab switching on Linux` (diff)
downloadferdium-app-857f0c2abe562252d5e514d932a57b038b7d38b6.tar.gz
ferdium-app-857f0c2abe562252d5e514d932a57b038b7d38b6.tar.zst
ferdium-app-857f0c2abe562252d5e514d932a57b038b7d38b6.zip
Add Linux specific definition for shortcut preview
Diffstat (limited to 'src')
-rw-r--r--src/environment.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/environment.js b/src/environment.js
index e185120c0..7bb2db134 100644
--- a/src/environment.js
+++ b/src/environment.js
@@ -8,7 +8,16 @@ export const isMac = process.platform === 'darwin';
8export const isWindows = process.platform === 'win32'; 8export const isWindows = process.platform === 'win32';
9export const isLinux = process.platform === 'linux'; 9export const isLinux = process.platform === 'linux';
10 10
11export const ctrlKey = isMac ? '⌘' : 'Ctrl'; 11let ctrlShortcutKey;
12if (isMac) {
13 ctrlShortcutKey = '⌘';
14} else if (isWindows) {
15 ctrlShortcutKey = 'Ctrl';
16} else {
17 ctrlShortcutKey = 'Alt';
18}
19
20export const ctrlKey = ctrlShortcutKey;
12 21
13let api; 22let api;
14if (!isDevMode || (isDevMode && useLiveAPI)) { 23if (!isDevMode || (isDevMode && useLiveAPI)) {