repo.or.cz
/
gitter.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Merge branch 'hotfix/21.56.9' into master
[gitter.git]
/
public
/
js
/
utils
/
platform-keys.js
blob
e687fe500c5965ee7413b97abe7a65567cb630f2
1
'use strict';
2
3
var platformDetect = require('./platformDetect');
4
5
module.exports = (function() {
6
// Set modifier keys for the OS
7
8
switch (platformDetect()) {
9
case 'Mac':
10
return {
11
cmd: '⌘',
12
gitter: 'ctrl'
13
};
14
case 'Windows':
15
return {
16
cmd: 'ctrl',
17
gitter: '⇧'
18
};
19
default:
20
return {
21
// Linux and other
22
cmd: 'ctrl',
23
gitter: '⇧+alt'
24
};
25
}
26
})();