Skip to content

armgit / dbx

Public Imported from GitHub
0

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。

fix(grid): prevent grid from intercepting clipboard in native inputs and cell detail

t8y20b07f05f7298
diff --git a/apps/desktop/src/components/grid/DataGrid.vue b/apps/desktop/src/components/grid/DataGrid.vue
index 4400377534..de36ece1cd 100644
--- a/apps/desktop/src/components/grid/DataGrid.vue
+++ b/apps/desktop/src/components/grid/DataGrid.vue
@@ -4016,6 +4016,8 @@ function pasteTextIntoSelection(text: string): boolean {
function onGridPaste(event: ClipboardEvent) {
if (!props.editable || (!selectedRange.value && !hasColumnSelection.value)) return;
+ const target = event.target as HTMLElement | null;
+ if (target?.closest("input, textarea, [contenteditable='true'], [role='textbox']")) return;
const text = event.clipboardData?.getData("text/plain");
if (text === undefined) return;
event.preventDefault();
@@ -7482,6 +7484,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {
<TabsContent value="details" class="m-0 min-h-0 flex-1 flex flex-col">
<div
+ data-native-clipboard
class="flex-1 min-h-0 overflow-auto p-3 text-xs"
:class="
cellDetailPanelIsBottom ? 'grid grid-cols-[minmax(0,1fr)_minmax(220px,30%)] gap-3' : 'space-y-3'