Skip to content

Commit 13fc929

Browse files
Prevent Ctrl/cmd+A from selecting all rows when editing a cell. #8572
1 parent bd259cd commit 13fc929

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
@@ -251,6 +251,10 @@ export function TextEditor({row, column, onRowChange, onClose}) {
251251
if(e.keyCode == 13 && !e.shiftKey) {
252252
onOK();
253253
}
254+
// Handle "Ctrl + A" or "Cmd + A".
255+
if ((e.ctrlKey || e.metaKey) && e.keyCode === 65) {
256+
e.stopPropagation();
257+
}
254258
};
255259

256260
return (

0 commit comments

Comments
 (0)