debian-mirror-gitlab/app/assets/javascripts/constants.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
223 B
JavaScript
Raw Normal View History

2023-03-17 16:20:25 +05:30
export const getModifierKey = (removeSuffix = false) => {
2023-06-20 00:43:36 +05:30
// eslint-disable-next-line @gitlab/require-i18n-strings
2023-03-17 16:20:25 +05:30
const winKey = `Ctrl${removeSuffix ? '' : '+'}`;
return window.gl?.client?.isMac ? '⌘' : winKey;
};