debian-mirror-gitlab/app/assets/javascripts/constants.js
2023-06-20 00:43:36 +05:30

5 lines
223 B
JavaScript

export const getModifierKey = (removeSuffix = false) => {
// eslint-disable-next-line @gitlab/require-i18n-strings
const winKey = `Ctrl${removeSuffix ? '' : '+'}`;
return window.gl?.client?.isMac ? '⌘' : winKey;
};