mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-10 03:28:14 +00:00
Fix: Disable GitHub shortcuts in text field
This commit is contained in:
parent
091ac1312b
commit
1af0b7d967
1 changed files with 7 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue