fix cmd stopping stream
This commit is contained in:
parent
feb9ad7365
commit
18ffc1888b
1 changed files with 3 additions and 3 deletions
|
|
@ -139,9 +139,9 @@ export function Chat() {
|
|||
// Cmd + Backspace to delete current step
|
||||
const listener = (e: any) => {
|
||||
if (
|
||||
e.key === "Backspace" && jetbrains
|
||||
? e.altKey
|
||||
: isMetaEquivalentKeyPressed(e) && !e.shiftKey
|
||||
e.key === "Backspace" &&
|
||||
(jetbrains ? e.altKey : isMetaEquivalentKeyPressed(e)) &&
|
||||
!e.shiftKey
|
||||
) {
|
||||
dispatch(cancelStream());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue