improve selections and remove redundant edit_mode (#2617)

This commit is contained in:
Kurt Hutten
2024-06-06 16:03:10 +10:00
committed by GitHub
parent 8a2555550f
commit acd3a5717d
2 changed files with 6 additions and 34 deletions

View File

@ -51,14 +51,6 @@ function CommandBarSelectionInput({
inputRef.current?.focus()
}, [selection, inputRef])
// Exit engine's edit mode when this input step is active,
// and re-enter it when it's not.
// In future the engine's edit mode will go away and this will be handled differently.
useEffect(() => {
kclManager.exitEditMode()
return () => kclManager.defaultSelectionFilter()
}, [])
// Fast-forward through this arg if it's marked as skippable
// and we have a valid selection already
useEffect(() => {