debian-mirror-gitlab/app/assets/javascripts/constants.js
2023-03-17 16:20:25 +05:30

6 lines
215 B
JavaScript

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