Merge pull request #30168 from overleaf/mg-context-menu

Add context menu (right click) to editor

GitOrigin-RevId: f2e567b51b04170ba1a46b0ab4659f3481b05bfe
This commit is contained in:
Malik Glossop
2026-01-15 14:18:58 +00:00
committed by Copybot
parent 5e38efb6b2
commit f087d125c1
21 changed files with 1722 additions and 35 deletions
@@ -57,6 +57,10 @@ export const CommandRegistryProvider: React.FC<React.PropsWithChildren> = ({
// NOTE: This is where we'd add functionality for customising shortcuts.
const shortcuts: Record<string, Shortcut[]> = useMemo(
() => ({
cut: [{ key: 'Mod-x' }],
copy: [{ key: 'Mod-c' }],
paste: [{ key: 'Mod-v' }],
'toggle-track-changes': [{ key: 'Mod-Shift-A' }],
undo: [
{
key: 'Mod-z',