/**
 * Copyright IBM Corp. 2020, 2026
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

//#region src/components/DataSpreadsheet/utils/checkForHoldingKey.js
/**
* Copyright IBM Corp. 2022, 2022
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
const checkForHoldingKey = (event, key) => {
	if (key == "cmd") return event.metaKey || event.ctrlKey;
	else return event[key];
};

//#endregion
export { checkForHoldingKey };