@atlaskit/editor-plugin-table
Version:
Table plugin for the @atlaskit/editor
14 lines (13 loc) • 485 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getDragBehaviour = void 0;
var _browser = require("@atlaskit/editor-common/browser");
var getDragBehaviour = exports.getDragBehaviour = function getDragBehaviour(_ref) {
var altKey = _ref.altKey,
ctrlKey = _ref.ctrlKey;
var browser = (0, _browser.getBrowserInfo)();
var isCloneModifierKeyPressed = browser.mac ? altKey : ctrlKey;
return isCloneModifierKeyPressed ? 'clone' : 'move';
};