✨ feat(shortcuts): 添加打开设置的键盘快捷键

新增 openSettings 快捷键,默认绑定 Mod+,,用于触发设置对话框。

包含所有语言包的翻译、键盘快捷键文档更新,以及测试用例。
This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-06-08 21:52:26 +08:00
1 parent 19139a9b34
commit 178a800ce8
13 files changed
+46

No files matched your search

+7
View File
@@ -47,6 +47,7 @@ import {
isModRShortcut,
isNewQueryShortcut,
isObjectSourceSaveShortcutTarget,
isOpenSettingsShortcut,
isResetZoomShortcut,
isRefreshDataShortcut,
isSaveShortcut,
@@ -760,6 +761,12 @@ function handleKeydown(e: KeyboardEvent) {
const shortcuts = settingsStore.editorSettings.shortcuts;
if (isOpenSettingsShortcut(e, shortcuts)) {
e.preventDefault();
e.stopPropagation();
showSettingsDialog.value = true;
return;
}
if (isFocusSearchShortcut(e, shortcuts)) {
const focused = contentAreaRef.value?.focusSearch() || appSidebarRef.value?.focusSearch();
if (focused) {