mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-22 21:50:42 -05:00
refac
This commit is contained in:
1 parent
6a0223a882
commit
e0fbd2a83e
1 file changed
+3
-1
@@ -168,10 +168,12 @@
|
||||
{#if typingPath}
|
||||
<input
|
||||
bind:this={pathInput}
|
||||
value={breadcrumbs.at(-1)?.path ?? ''}
|
||||
value={selectedFile ?? breadcrumbs.at(-1)?.path ?? ''}
|
||||
readonly={!!selectedFile}
|
||||
class="min-w-0 flex-1 bg-transparent text-xs text-gray-800 outline-hidden dark:text-gray-200"
|
||||
aria-label={$i18n.t('Path')}
|
||||
on:keydown={(e) => {
|
||||
if (selectedFile && e.key !== 'Escape') return;
|
||||
if (e.key === 'Enter' && !e.isComposing) {
|
||||
goToPath();
|
||||
} else if (e.key === 'Tab' && listFolders) {
|
||||
|
||||
Reference in new issue
Block a user