diff --git a/packages/web/src/commands/CommandPalette.svelte b/packages/web/src/commands/CommandPalette.svelte index ad9cd239..9ac1f6d3 100644 --- a/packages/web/src/commands/CommandPalette.svelte +++ b/packages/web/src/commands/CommandPalette.svelte @@ -63,7 +63,11 @@ function handleKeyDown(e) { if (e.keyCode == keycodes.upArrow && selectedIndex > 0) selectedIndex--; if (e.keyCode == keycodes.downArrow && selectedIndex < filteredItems.length - 1) selectedIndex++; - if (e.keyCode == keycodes.enter) handleCommand(filteredItems[selectedIndex]); + if (e.keyCode == keycodes.enter) { + e.preventDefault(); + e.stopPropagation(); + handleCommand(filteredItems[selectedIndex]); + } if (e.keyCode == keycodes.escape) $visibleCommandPalette = false; if (e.keyCode == keycodes.pageDown) selectedIndex = Math.min(selectedIndex + 15, filteredItems.length - 1); diff --git a/packages/web/src/widgets/FavoritesWidget.svelte b/packages/web/src/widgets/FavoritesWidget.svelte index e3ab3443..c4280ca5 100644 --- a/packages/web/src/widgets/FavoritesWidget.svelte +++ b/packages/web/src/widgets/FavoritesWidget.svelte @@ -19,7 +19,9 @@ {#if hasPermission('files/favorites/read')} - + + + {/if} diff --git a/packages/web/src/widgets/TabsPanel.svelte b/packages/web/src/widgets/TabsPanel.svelte index ec541976..81e2afba 100644 --- a/packages/web/src/widgets/TabsPanel.svelte +++ b/packages/web/src/widgets/TabsPanel.svelte @@ -85,10 +85,10 @@ }); registerCommand({ - id: 'tabs.share', + id: 'tabs.addToFavorites', category: 'Tabs', - name: 'Share', - icon: 'icon share', + name: 'Favorites', + icon: 'icon favorite', toolbar: true, testEnabled: () => getActiveTab()?.tabComponent &&