FIX: Context menu should not appear if selected text is deleted (#374)

This commit is contained in:
Keegan George 2023-12-20 10:50:17 -08:00 committed by GitHub
parent ea116f91fc
commit 8feb3ad4db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -160,6 +160,10 @@ export default class AiHelperContextMenu extends Component {
if (event.key === "Escape") {
return this.closeContextMenu();
}
if (event.key === "Backspace" && this.selectedText) {
return this.closeContextMenu();
}
}
@debounce(INPUT_DELAY)