@atlaskit/editor-plugin-table
Version:
Table plugin for the @atlaskit/editor
8 lines • 343 B
JavaScript
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
export var getDragBehaviour = function getDragBehaviour(_ref) {
var altKey = _ref.altKey,
ctrlKey = _ref.ctrlKey;
var browser = getBrowserInfo();
var isCloneModifierKeyPressed = browser.mac ? altKey : ctrlKey;
return isCloneModifierKeyPressed ? 'clone' : 'move';
};