diff options
| author | srichman333 <sarah_n_richman@brown.edu> | 2024-03-17 14:15:44 -0400 |
|---|---|---|
| committer | srichman333 <sarah_n_richman@brown.edu> | 2024-03-17 14:15:44 -0400 |
| commit | 20f4d81cb8b04cd2202d76a5fcbc185095437563 (patch) | |
| tree | 60bc3fe9545d06e04cddb155f739f5c514a4a5c3 /src/client/views/GlobalKeyHandler.ts | |
| parent | d790a5912e0bbb431b913f54fbc2bfd11941c0c1 (diff) | |
| parent | 625c3a67fbcbfc93f1f1b35aed10b9fe7f33dfa9 (diff) | |
Merge branch 'master' into dataviz-ai-sarah
Diffstat (limited to 'src/client/views/GlobalKeyHandler.ts')
| -rw-r--r-- | src/client/views/GlobalKeyHandler.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts index e800798ca..667d8dbb0 100644 --- a/src/client/views/GlobalKeyHandler.ts +++ b/src/client/views/GlobalKeyHandler.ts @@ -55,10 +55,12 @@ export class KeyManager { public handleModifiers = action((e: KeyboardEvent) => { if (e.shiftKey) SnappingManager.SetShiftKey(true); if (e.ctrlKey) SnappingManager.SetCtrlKey(true); + if (e.metaKey) SnappingManager.SetMetaKey(true); }); public unhandleModifiers = action((e: KeyboardEvent) => { if (!e.shiftKey) SnappingManager.SetShiftKey(false); if (!e.ctrlKey) SnappingManager.SetCtrlKey(false); + if (!e.metaKey) SnappingManager.SetMetaKey(false); }); public handle = action((e: KeyboardEvent) => { |
