Fix: Disable GitHub shortcuts in text field

This commit is contained in:
fyzanshaik 2024-07-29 18:55:07 +05:30
parent 091ac1312b
commit 1af0b7d967

View file

@ -131,6 +131,13 @@ export default function ContentApp({
});
}
});
const handleKeyDown = (e: KeyboardEvent) => {
if (isPopoverOpen) {
e.stopPropagation();
e.preventDefault();
}
};
document.addEventListener('keydown', handleKeyDown, true);
const portalDiv = document.createElement("div");
portalDiv.id = "popover-portal";