feat(web): Duplicate-Page shortcut changes (#11183)

* duplicate page assign other shortcut keys, add 'open image' shortcut

* add shortcut info page to duplicates with own list of keys

* edit translations, add translationkeys

* format fix

* remove typo

---------

Co-authored-by: Zack Pollard <zackpollard@ymail.com>
Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
Jan 2024-07-26 23:47:51 +02:00 committed by GitHub
parent a78eeb9b9c
commit e1ac73718c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 85 additions and 40 deletions

View file

@ -64,8 +64,14 @@
<svelte:window
use:shortcuts={[
{ shortcut: { key: 'k', shift: true }, onShortcut: onSelectAll },
{ shortcut: { key: 't', shift: true }, onShortcut: onSelectNone },
{ shortcut: { key: 'a' }, onShortcut: onSelectAll },
{
shortcut: { key: 's' },
onShortcut: () => {
setAsset(assets[0]);
},
},
{ shortcut: { key: 'd' }, onShortcut: onSelectNone },
{ shortcut: { key: 'c', shift: true }, onShortcut: handleResolve },
]}
/>