Ensure that the editor position should not get changed once it is opened. Fixes #7393

This commit is contained in:
Aditya Toshniwal
2022-05-18 13:52:09 +05:30
committed by Akshay Joshi
parent 53bd2c2dc6
commit 5e0dfff42a
4 changed files with 39 additions and 10 deletions

View File

@@ -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();
}
};