diff --git a/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/index.jsx b/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/index.jsx index 90a777906..143db2fc2 100644 --- a/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/index.jsx +++ b/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/index.jsx @@ -109,7 +109,7 @@ function CustomRow(props) { dataGridExtras.onSelectedCellChange?.(null); } const handleKeyDown = (e)=>{ - dataGridExtras.handleShortcuts(e); + if (e.target.role == 'gridcell') dataGridExtras.handleShortcuts(e); if(e.code === 'Enter' && !props.isRowSelected && props.selectedCellIdx > 0) { props.selectCell(props.row, props.viewportColumns?.find(columns => columns.idx === props.selectedCellIdx), true); }