diff --git a/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/Editors.jsx b/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/Editors.jsx index d8881e4832a..ca9912fb3b9 100644 --- a/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/Editors.jsx +++ b/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/Editors.jsx @@ -246,11 +246,18 @@ export function TextEditor({row, column, onRowChange, onClose}) { } }; + const onkeydown = (e)=>{ + // If only the Enter key is pressed, then save the changes. + if(e.keyCode == 13 && !e.shiftKey) { + onOK(); + } + }; + return ( -