mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat: add shortcut of zooming to selection (#9447)
### Changed - change edgeless shortcut `cmd + 0`, `cmd + 1` to `alt + 0`, `alt + 1` - add new shortcut `alt + 2` to zoom to currently selected elements
This commit is contained in:
@@ -16,6 +16,7 @@ type KeyboardShortcutsI18NKeys =
|
||||
| 'zoomOut'
|
||||
| 'zoomTo100'
|
||||
| 'zoomToFit'
|
||||
| 'zoomToSelection'
|
||||
| 'select'
|
||||
| 'text'
|
||||
| 'shape'
|
||||
@@ -114,8 +115,9 @@ export const useMacEdgelessKeyboardShortcuts = (): ShortcutMap => {
|
||||
[t('redo')]: ['⌘', '⇧', 'Z'],
|
||||
[t('zoomIn')]: ['⌘', '+'],
|
||||
[t('zoomOut')]: ['⌘', '-'],
|
||||
[t('zoomTo100')]: ['⌘', '0'],
|
||||
[t('zoomToFit')]: ['⌘', '1'],
|
||||
[t('zoomTo100')]: ['Alt', '0'],
|
||||
[t('zoomToFit')]: ['Alt', '1'],
|
||||
[t('zoomToSelection')]: ['Alt', '2'],
|
||||
[t('select')]: ['V'],
|
||||
[t('text')]: ['T'],
|
||||
[t('shape')]: ['S'],
|
||||
@@ -140,8 +142,9 @@ export const useWinEdgelessKeyboardShortcuts = (): ShortcutMap => {
|
||||
[t('redo')]: ['Ctrl', 'Y/Ctrl', 'Shift', 'Z'],
|
||||
[t('zoomIn')]: ['Ctrl', '+'],
|
||||
[t('zoomOut')]: ['Ctrl', '-'],
|
||||
[t('zoomTo100')]: ['Ctrl', '0'],
|
||||
[t('zoomToFit')]: ['Ctrl', '1'],
|
||||
[t('zoomTo100')]: ['Alt', '0'],
|
||||
[t('zoomToFit')]: ['Alt', '1'],
|
||||
[t('zoomToSelection')]: ['Alt', '2'],
|
||||
[t('select')]: ['V'],
|
||||
[t('text')]: ['T'],
|
||||
[t('shape')]: ['S'],
|
||||
|
||||
@@ -618,6 +618,7 @@
|
||||
"com.affine.keyboardShortcuts.zoomOut": "Zoom out",
|
||||
"com.affine.keyboardShortcuts.zoomTo100": "Zoom to 100%",
|
||||
"com.affine.keyboardShortcuts.zoomToFit": "Zoom to fit",
|
||||
"com.affine.keyboardShortcuts.zoomToSelection": "Zoom to selection",
|
||||
"com.affine.last30Days": "Last 30 days",
|
||||
"com.affine.last7Days": "Last 7 days",
|
||||
"com.affine.lastMonth": "Last month",
|
||||
|
||||
@@ -600,6 +600,7 @@
|
||||
"com.affine.keyboardShortcuts.zoomOut": "缩小",
|
||||
"com.affine.keyboardShortcuts.zoomTo100": "缩放至 100%",
|
||||
"com.affine.keyboardShortcuts.zoomToFit": "自适应缩放",
|
||||
"com.affine.keyboardShortcuts.zoomToSelection": "缩放至选中元素",
|
||||
"com.affine.last30Days": "过去 30 天",
|
||||
"com.affine.last7Days": "过去 7 天",
|
||||
"com.affine.lastMonth": "上个月",
|
||||
|
||||
@@ -597,6 +597,7 @@
|
||||
"com.affine.keyboardShortcuts.zoomOut": "縮小",
|
||||
"com.affine.keyboardShortcuts.zoomTo100": "縮放至 100%",
|
||||
"com.affine.keyboardShortcuts.zoomToFit": "縮放至適當尺寸",
|
||||
"com.affine.keyboardShortcuts.zoomToSelection": "縮放至選擇元素",
|
||||
"com.affine.last30Days": "最近 30 天",
|
||||
"com.affine.last7Days": "最近 7 天",
|
||||
"com.affine.lastMonth": "上個月",
|
||||
|
||||
Reference in New Issue
Block a user