diff --git a/src/components/file-picker.tsx b/src/components/file-picker.tsx index 33260e39..e3639d41 100644 --- a/src/components/file-picker.tsx +++ b/src/components/file-picker.tsx @@ -182,14 +182,17 @@ const FilePicker: Component = (props) => { if (e.key === "ArrowDown") { e.preventDefault() + e.stopPropagation() handleNavigateDown() props.onNavigate("down") } else if (e.key === "ArrowUp") { e.preventDefault() + e.stopPropagation() handleNavigateUp() props.onNavigate("up") } else if (e.key === "Enter") { e.preventDefault() + e.stopPropagation() if (fileList[selectedIndex()]) { handleSelect(fileList[selectedIndex()].path) } @@ -209,7 +212,7 @@ const FilePicker: Component = (props) => { >