Merge pull request #30168 from overleaf/mg-context-menu
Add context menu (right click) to editor GitOrigin-RevId: f2e567b51b04170ba1a46b0ab4659f3481b05bfe
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user