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: enhance contextmenu handler for editable elements
t8y258a52f65cc9d
diff --git a/apps/desktop/src/App.vue b/apps/desktop/src/App.vueindex dc3099066b..8a61d1fd3d 100644--- a/apps/desktop/src/App.vue+++ b/apps/desktop/src/App.vue@@ -956,8 +956,35 @@ async function reconnectRestoredTabs() {function handleContextMenu(e: MouseEvent) {const target = e.target as HTMLElement;- if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement) return;- if (target.closest("[data-reka-collection-item], [data-radix-vue-collection-item], [data-context-menu]")) return;++ // Check if target is a standard editable input element+ if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement) {+ if (import.meta.env.DEV) {+ console.debug("[contextmenu] Allowing for input/textarea:", target);+ }+ return;+ }++ // Check if target or any parent has contenteditable attribute+ if (target.isContentEditable || target.closest("[contenteditable]")) {+ if (import.meta.env.DEV) {+ console.debug("[contextmenu] Allowing for contenteditable:", target);+ }+ return;+ }++ // Check if target is within a custom context menu container or collection item+ if (target.closest("[data-reka-collection-item], [data-radix-vue-collection-item], [data-context-menu]")) {+ if (import.meta.env.DEV) {+ console.debug("[contextmenu] Allowing for custom context menu container:", target);+ }+ return;+ }++ // Prevent default context menu for all other elements+ if (import.meta.env.DEV) {+ console.debug("[contextmenu] Preventing default for:", target);+ }e.preventDefault();}