diff --git a/packages/stage/src/StageMask.ts b/packages/stage/src/StageMask.ts index b7bf0e4f1..72e75c8a7 100644 --- a/packages/stage/src/StageMask.ts +++ b/packages/stage/src/StageMask.ts @@ -108,11 +108,16 @@ export default class StageMask extends Rule { this.content.addEventListener('wheel', this.mouseWheelHandler); this.content.addEventListener('mousemove', this.highlightHandler); this.content.addEventListener('mouseleave', this.mouseLeaveHandler); - KeyController.global.keydown('shift', (e) => { + + const isMac = /mac os x/.test(navigator.userAgent.toLowerCase()); + + const ctrl = isMac ? 'meta' : 'ctrl'; + + KeyController.global.keydown(ctrl, (e) => { e.inputEvent.preventDefault(); this.isMultiSelectStatus = true; }); - KeyController.global.keyup('shift', (e) => { + KeyController.global.keyup(ctrl, (e) => { e.inputEvent.preventDefault(); this.isMultiSelectStatus = false; });