mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that the editor position should not get changed once it is opened. Fixes #7393
This commit is contained in:
committed by
Akshay Joshi
parent
53bd2c2dc6
commit
5e0dfff42a
@@ -30,7 +30,7 @@ export default function ConnectServerContent({closeModal, data, onOK, setHeight}
|
||||
|
||||
const onKeyDown = (e) => {
|
||||
// If enter key is pressed then click on OK button
|
||||
if (e.keyCode == 13) {
|
||||
if (e.key === 'Enter') {
|
||||
okBtnRef.current?.click();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user