✨ feat(shortcuts): 添加打开设置的键盘快捷键
新增 openSettings 快捷键,默认绑定 Mod+,,用于触发设置对话框。 包含所有语言包的翻译、键盘快捷键文档更新,以及测试用例。
This commit is contained in:
13 files changed
+46
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user