Skip to content

Commit 0f3257e

Browse files
Prevent cmd/ctrl+A for in-place edit cells.
1 parent 13fc929 commit 0f3257e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid

web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/Editors.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ export function NumberEditor({row, column, onRowChange, onClose}) {
315315
return false;
316316
};
317317
const onKeyDown = (e)=>{
318+
// Handle "Ctrl + A" or "Cmd + A".
319+
if ((e.ctrlKey || e.metaKey) && e.keyCode === 65) {
320+
e.stopPropagation();
321+
}
318322
if(e.code === 'Tab' || e.code === 'Enter') {
319323
e.preventDefault();
320324
if(!onBlur()) {

0 commit comments

Comments
 (0)