FIX: Context menu should not appear if selected text is deleted (#374)
This commit is contained in:
parent
ea116f91fc
commit
8feb3ad4db
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue