mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-15 01:32:17 +01:00
return true (cancel) the enter key event in typeahead (#1804)
This commit is contained in:
parent
e2800b39b6
commit
e3a9b80df5
@ -465,6 +465,8 @@ const ChangeConnectionBlockModal = React.memo(
|
||||
globalStore.set(changeConnModalAtom, false);
|
||||
globalRefocusWithTimeout(10);
|
||||
}
|
||||
setRowIndex(0);
|
||||
return true;
|
||||
}
|
||||
if (keyutil.checkKeyPressed(waveEvent, "Escape")) {
|
||||
globalStore.set(changeConnModalAtom, false);
|
||||
@ -481,6 +483,7 @@ const ChangeConnectionBlockModal = React.memo(
|
||||
return true;
|
||||
}
|
||||
setRowIndex(0);
|
||||
return false;
|
||||
},
|
||||
[changeConnModalAtom, viewModel, blockId, connSelected, selectionList]
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user