UNPKG

@atlaskit/editor-plugin-table

Version:

Table plugin for the @atlaskit/editor

15 lines (14 loc) 666 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDragBehaviour = void 0; var _browser = require("@atlaskit/editor-common/browser"); var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals"); var getDragBehaviour = exports.getDragBehaviour = function getDragBehaviour(_ref) { var altKey = _ref.altKey, ctrlKey = _ref.ctrlKey; var browser = (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? (0, _browser.getBrowserInfo)() : _browser.browser; var isCloneModifierKeyPressed = browser.mac ? altKey : ctrlKey; return isCloneModifierKeyPressed ? 'clone' : 'move'; };