25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(sql-library): restore Ctrl+click multi-select on Windows (#2470)
一颗红心69bfd59c3ce3
diff --git a/apps/desktop/src/App.vue b/apps/desktop/src/App.vueindex 2581d0f23e..4befc24185 100644--- a/apps/desktop/src/App.vue+++ b/apps/desktop/src/App.vue@@ -41,6 +41,7 @@ import { findTreeNodeById, resolveNewQueryTarget } from "@/lib/newQueryContext";import { buildExecutableObjectSourceStatements, objectSourceSaveExecutionMode } from "@/lib/objectSourceEditor";import { resolveExecutableSql, resolveExecutableSqlWithBackend, type SqlExecutionSnapshot } from "@/lib/sqlExecutionTarget";import { uuid } from "@/lib/utils";+import { isMacOS } from "@/lib/platform";import { isTauriRuntime } from "@/lib/tauriRuntime";import { openQueryResultArchiveFile } from "@/lib/queryResultArchiveFile";import { sqlFileTitleFromPath } from "@/lib/sqlFileOpen";@@ -1639,10 +1640,11 @@ onMounted(async () => {}// macOS: Ctrl+click fires both click and contextmenu.// Intercept click in capture phase to prevent unwanted navigation.+ // Windows/Linux use Ctrl+click for multi-select; do not block there.document.addEventListener("click",(e) => {- if (e.ctrlKey) e.stopPropagation();+ if (e.ctrlKey && isMacOS()) e.stopPropagation();},true,);