1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-07 21:47:02 +09:00

feat(shortcut): add Cmd+Shift+C shortcut to copy current page link

This commit is contained in:
Andrew Simachev 2025-06-05 12:49:33 +02:00
parent e5e9a94100
commit 0592bfba96
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF

View file

@ -315,6 +315,15 @@ class Keyboard {
Action.createWidgetFromObject(rootId, rootId, first?.id, I.BlockPosition.Top, analytics.route.shortcut);
});
// Copy page link
this.shortcut(`${cmd}+shift+c`, e, () => {
e.preventDefault();
const rootId = this.getRootId();
const object = S.Detail.get(rootId, rootId);
const space = U.Space.getSpaceview();
U.Object.copyLink(object, space, 'web', analytics.route.shortcut);
});
// Lock/Unlock
this.shortcut('pageLock', e, () => this.onToggleLock());
};