Skip to content

Commit

Permalink
feat(core): update connector shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo committed Nov 5, 2024
1 parent 15749de commit 40ba0aa
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ type KeyboardShortcutsI18NKeys =
| 'text'
| 'shape'
| 'image'
| 'straightConnector'
| 'elbowedConnector'
| 'curveConnector'
| 'connector'
| 'pen'
| 'hand'
| 'note'
Expand Down Expand Up @@ -122,10 +120,7 @@ export const useMacEdgelessKeyboardShortcuts = (): ShortcutMap => {
[t('text')]: ['T'],
[t('shape')]: ['S'],
[t('image')]: ['I'],
[t('straightConnector')]: ['L'],
[t('elbowedConnector')]: ['X'],
// not implement yet
// [t('curveConnector')]: 'C',
[t('connector')]: ['C'],
[t('pen')]: ['P'],
[t('hand')]: ['H'],
[t('note')]: ['N'],
Expand All @@ -151,10 +146,7 @@ export const useWinEdgelessKeyboardShortcuts = (): ShortcutMap => {
[t('text')]: ['T'],
[t('shape')]: ['S'],
[t('image')]: ['I'],
[t('straightConnector')]: ['L'],
[t('elbowedConnector')]: ['X'],
// not implement yet
// [t('curveConnector')]: 'C',
[t('connector')]: ['C'],
[t('pen')]: ['P'],
[t('hand')]: ['H'],
[t('note')]: ['N'],
Expand Down
4 changes: 1 addition & 3 deletions packages/frontend/i18n/src/resources/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,8 @@
"com.affine.keyboardShortcuts.cancel": "إلغاء",
"com.affine.keyboardShortcuts.codeBlock": "كتلة رمز",
"com.affine.keyboardShortcuts.copy-private-link": "نسخ الرابط الخاص",
"com.affine.keyboardShortcuts.curveConnector": "موصل منحني",
"com.affine.keyboardShortcuts.connector": "موصل",
"com.affine.keyboardShortcuts.divider": "فاصل",
"com.affine.keyboardShortcuts.elbowedConnector": "موصل بزاوية",
"com.affine.keyboardShortcuts.expandOrCollapseSidebar": "توسيع/طي الشريط الجانبي",
"com.affine.keyboardShortcuts.goBack": "العودة",
"com.affine.keyboardShortcuts.goForward": "التقدم للأمام",
Expand All @@ -523,7 +522,6 @@
"com.affine.keyboardShortcuts.select": "تحديد",
"com.affine.keyboardShortcuts.selectAll": "تحديد الكل",
"com.affine.keyboardShortcuts.shape": "شكل",
"com.affine.keyboardShortcuts.straightConnector": "موصل مستقيم",
"com.affine.keyboardShortcuts.strikethrough": "تسطير",
"com.affine.keyboardShortcuts.subtitle": "تحقق من اختصارات لوحة المفاتيح بسرعة",
"com.affine.keyboardShortcuts.switch": "تبديل",
Expand Down
4 changes: 1 addition & 3 deletions packages/frontend/i18n/src/resources/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,8 @@
"com.affine.keyboardShortcuts.cancel": "Cancel",
"com.affine.keyboardShortcuts.codeBlock": "Code block",
"com.affine.keyboardShortcuts.copy-private-link": "Copy private link",
"com.affine.keyboardShortcuts.curveConnector": "Curve connector",
"com.affine.keyboardShortcuts.connector": "Connector",
"com.affine.keyboardShortcuts.divider": "Divider",
"com.affine.keyboardShortcuts.elbowedConnector": "Elbowed connector",
"com.affine.keyboardShortcuts.expandOrCollapseSidebar": "Expand/collapse sidebar",
"com.affine.keyboardShortcuts.goBack": "Go back",
"com.affine.keyboardShortcuts.goForward": "Go forward",
Expand All @@ -571,7 +570,6 @@
"com.affine.keyboardShortcuts.select": "Select",
"com.affine.keyboardShortcuts.selectAll": "Select all",
"com.affine.keyboardShortcuts.shape": "Shape",
"com.affine.keyboardShortcuts.straightConnector": "Straight connector",
"com.affine.keyboardShortcuts.strikethrough": "Strikethrough",
"com.affine.keyboardShortcuts.subtitle": "Check keyboard shortcuts quickly",
"com.affine.keyboardShortcuts.switch": "Switch view",
Expand Down
4 changes: 1 addition & 3 deletions packages/frontend/i18n/src/resources/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,8 @@
"com.affine.keyboardShortcuts.cancel": "Annuler ",
"com.affine.keyboardShortcuts.codeBlock": "Bloc de code",
"com.affine.keyboardShortcuts.copy-private-link": "Copier le lien privé",
"com.affine.keyboardShortcuts.curveConnector": "Connecteur arrondi",
"com.affine.keyboardShortcuts.connector": "Connecteur",
"com.affine.keyboardShortcuts.divider": "Séparateur",
"com.affine.keyboardShortcuts.elbowedConnector": "Connecteur coudé",
"com.affine.keyboardShortcuts.expandOrCollapseSidebar": "Agrandir/Rabattre la barre latérale",
"com.affine.keyboardShortcuts.goBack": "Retour en arrière",
"com.affine.keyboardShortcuts.goForward": "Retour en avant",
Expand All @@ -507,7 +506,6 @@
"com.affine.keyboardShortcuts.select": "Sélectionner ",
"com.affine.keyboardShortcuts.selectAll": "Sélectionner l'ensemble",
"com.affine.keyboardShortcuts.shape": "Forme",
"com.affine.keyboardShortcuts.straightConnector": "Connecteur droit",
"com.affine.keyboardShortcuts.strikethrough": "Barrer",
"com.affine.keyboardShortcuts.subtitle": "Regarder rapidement les raccourcis clavier",
"com.affine.keyboardShortcuts.switch": "Changer",
Expand Down
4 changes: 1 addition & 3 deletions packages/frontend/i18n/src/resources/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,8 @@
"com.affine.keyboardShortcuts.cancel": "キャンセル",
"com.affine.keyboardShortcuts.codeBlock": "コードブロック",
"com.affine.keyboardShortcuts.copy-private-link": "プライベートリンクをコピーする",
"com.affine.keyboardShortcuts.curveConnector": "曲線コネクタ",
"com.affine.keyboardShortcuts.connector": "コネクタ",
"com.affine.keyboardShortcuts.divider": "区切り線",
"com.affine.keyboardShortcuts.elbowedConnector": "折れ線コネクタ",
"com.affine.keyboardShortcuts.expandOrCollapseSidebar": "サイドバーの展開 / 折りたたみ",
"com.affine.keyboardShortcuts.goBack": "戻す",
"com.affine.keyboardShortcuts.goForward": "進む",
Expand All @@ -551,7 +550,6 @@
"com.affine.keyboardShortcuts.select": "選択",
"com.affine.keyboardShortcuts.selectAll": "すべて選択",
"com.affine.keyboardShortcuts.shape": "シェイプ",
"com.affine.keyboardShortcuts.straightConnector": "直線コネクタ",
"com.affine.keyboardShortcuts.strikethrough": "取り消し線",
"com.affine.keyboardShortcuts.subtitle": "キーボードのショートカットを即座に確認",
"com.affine.keyboardShortcuts.switch": "スイッチ",
Expand Down
5 changes: 1 addition & 4 deletions packages/frontend/i18n/src/resources/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
"Edit": "수정",
"Edit Filter": "필터 수정",
"Editor Version": "에디터 버전",
"Elbowed Connector": "꺽인 연결 선",
"Enable": "활성화",
"Enable AFFiNE Cloud": "AFFiNE Cloud 활성화",
"Enable AFFiNE Cloud Description": "이 기능을 활성화하면, 이 워크스페이스의 데이터가 AFFiNE Cloud를 통해 백업 및 동기화됩니다.",
Expand Down Expand Up @@ -768,9 +767,8 @@
"com.affine.keyboardShortcuts.bold": "굵게",
"com.affine.keyboardShortcuts.cancel": "취소",
"com.affine.keyboardShortcuts.codeBlock": "코드 블럭",
"com.affine.keyboardShortcuts.curveConnector": "연결 곡선",
"com.affine.keyboardShortcuts.connector": "연결",
"com.affine.keyboardShortcuts.divider": "구분자",
"com.affine.keyboardShortcuts.elbowedConnector": "꺽인 연결 선",
"com.affine.keyboardShortcuts.expandOrCollapseSidebar": "사이드바 확장/축소",
"com.affine.keyboardShortcuts.goBack": "이전으로",
"com.affine.keyboardShortcuts.goForward": "다음으로",
Expand All @@ -794,7 +792,6 @@
"com.affine.keyboardShortcuts.select": "선택",
"com.affine.keyboardShortcuts.selectAll": "모두 선택",
"com.affine.keyboardShortcuts.shape": "모양",
"com.affine.keyboardShortcuts.straightConnector": "연결 직선",
"com.affine.keyboardShortcuts.strikethrough": "취소선",
"com.affine.keyboardShortcuts.subtitle": "키보드 단축키 빠르게 확인",
"com.affine.keyboardShortcuts.switch": "전환",
Expand Down
4 changes: 1 addition & 3 deletions packages/frontend/i18n/src/resources/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,8 @@
"com.affine.keyboardShortcuts.cancel": "Cancelar",
"com.affine.keyboardShortcuts.codeBlock": "Bloco de código",
"com.affine.keyboardShortcuts.copy-private-link": "Copiar link privado",
"com.affine.keyboardShortcuts.curveConnector": "Conector curvo",
"com.affine.keyboardShortcuts.connector": "Conector",
"com.affine.keyboardShortcuts.divider": "Divisor",
"com.affine.keyboardShortcuts.elbowedConnector": "Conector em ângulo",
"com.affine.keyboardShortcuts.expandOrCollapseSidebar": "Expandir/recolher barra lateral",
"com.affine.keyboardShortcuts.goBack": "Voltar",
"com.affine.keyboardShortcuts.goForward": "Avançar",
Expand All @@ -546,7 +545,6 @@
"com.affine.keyboardShortcuts.select": "Selecionar",
"com.affine.keyboardShortcuts.selectAll": "Selecionar tudo",
"com.affine.keyboardShortcuts.shape": "Forma",
"com.affine.keyboardShortcuts.straightConnector": "Conector reto",
"com.affine.keyboardShortcuts.strikethrough": "Tachado",
"com.affine.keyboardShortcuts.subtitle": "Verifique rapidamente os atalhos de teclado",
"com.affine.keyboardShortcuts.switch": "Alternar",
Expand Down
4 changes: 1 addition & 3 deletions packages/frontend/i18n/src/resources/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,8 @@
"com.affine.keyboardShortcuts.cancel": "Отмена",
"com.affine.keyboardShortcuts.codeBlock": "Блок с кодом",
"com.affine.keyboardShortcuts.copy-private-link": "Копировать закрытую ссылку",
"com.affine.keyboardShortcuts.curveConnector": "Изогнутый соединитель",
"com.affine.keyboardShortcuts.connector": "соединитель",
"com.affine.keyboardShortcuts.divider": "Разделитель",
"com.affine.keyboardShortcuts.elbowedConnector": "Угловой соединитель",
"com.affine.keyboardShortcuts.expandOrCollapseSidebar": "Развернуть/Свернуть боковую панель",
"com.affine.keyboardShortcuts.goBack": "Назад",
"com.affine.keyboardShortcuts.goForward": "Вперёд",
Expand All @@ -530,7 +529,6 @@
"com.affine.keyboardShortcuts.select": "Выбор",
"com.affine.keyboardShortcuts.selectAll": "Выбрать всё",
"com.affine.keyboardShortcuts.shape": "Фигура",
"com.affine.keyboardShortcuts.straightConnector": "Прямой соединитель",
"com.affine.keyboardShortcuts.strikethrough": "Перечёркнутый",
"com.affine.keyboardShortcuts.subtitle": "Быстрая проверка сочетаний клавиш",
"com.affine.keyboardShortcuts.switch": "Переключить",
Expand Down
4 changes: 1 addition & 3 deletions packages/frontend/i18n/src/resources/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,8 @@
"com.affine.keyboardShortcuts.cancel": "取消",
"com.affine.keyboardShortcuts.codeBlock": "代码块",
"com.affine.keyboardShortcuts.copy-private-link": "复制私有链接",
"com.affine.keyboardShortcuts.curveConnector": "曲线连接",
"com.affine.keyboardShortcuts.connector": "连接",
"com.affine.keyboardShortcuts.divider": "分割线",
"com.affine.keyboardShortcuts.elbowedConnector": "弯曲连接器快捷键",
"com.affine.keyboardShortcuts.expandOrCollapseSidebar": "展开/折叠侧边栏",
"com.affine.keyboardShortcuts.goBack": "返回",
"com.affine.keyboardShortcuts.goForward": "前进",
Expand All @@ -569,7 +568,6 @@
"com.affine.keyboardShortcuts.select": "选择",
"com.affine.keyboardShortcuts.selectAll": "全选",
"com.affine.keyboardShortcuts.shape": "形状快捷键",
"com.affine.keyboardShortcuts.straightConnector": "直线连接器快捷键",
"com.affine.keyboardShortcuts.strikethrough": "删除线",
"com.affine.keyboardShortcuts.subtitle": "快速查看快捷键",
"com.affine.keyboardShortcuts.switch": "切换视图快捷键",
Expand Down
4 changes: 1 addition & 3 deletions packages/frontend/i18n/src/resources/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,8 @@
"com.affine.keyboardShortcuts.cancel": "取消",
"com.affine.keyboardShortcuts.codeBlock": "代碼塊",
"com.affine.keyboardShortcuts.copy-private-link": "複製私有鏈接",
"com.affine.keyboardShortcuts.curveConnector": "曲線連接",
"com.affine.keyboardShortcuts.connector": "連接",
"com.affine.keyboardShortcuts.divider": "分割線",
"com.affine.keyboardShortcuts.elbowedConnector": "彎曲連接器",
"com.affine.keyboardShortcuts.expandOrCollapseSidebar": "展開/收起邊欄",
"com.affine.keyboardShortcuts.goBack": "返回",
"com.affine.keyboardShortcuts.goForward": "前進",
Expand All @@ -566,7 +565,6 @@
"com.affine.keyboardShortcuts.select": "選擇",
"com.affine.keyboardShortcuts.selectAll": "全選",
"com.affine.keyboardShortcuts.shape": "圖形",
"com.affine.keyboardShortcuts.straightConnector": "直線連接",
"com.affine.keyboardShortcuts.strikethrough": "刪除線",
"com.affine.keyboardShortcuts.subtitle": "快速睇返快捷鍵",
"com.affine.keyboardShortcuts.switch": "開閂掣",
Expand Down

0 comments on commit 40ba0aa

Please sign in to comment.