Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
158 changes: 158 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/app/components/commandPalette/constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const COMMAND_PALETTE_HOTKEYS = ['mod+shift+p', 'mod+k'];
export const COMMAND_PALETTE_HOTKEYS = ['Mod+Shift+P', 'Mod+K'] as const;
12 changes: 6 additions & 6 deletions static/app/components/commandPalette/ui/commandPalette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ export function CommandPalette({
<Text size="xs" variant="muted">
{t('Ask Seer')}
</Text>
<Hotkey variant="debossed" value="tab" />
<Hotkey variant="debossed" value="Tab" />
</Flex>
) : (
<AnimatePresence mode="popLayout">
Expand Down Expand Up @@ -1207,21 +1207,21 @@ function CommandPaletteHints() {
<Flex align="center" gap="lg">
<Flex align="center" gap="xs">
<Flex align="center" gap="2xs">
<Hotkey variant="debossed" value="up" />
<Hotkey variant="debossed" value="down" />
<Hotkey variant="debossed" value="ArrowUp" />
<Hotkey variant="debossed" value="ArrowDown" />
</Flex>
<Text size="xs" variant="muted">
{t('Move')}
</Text>
</Flex>
<Flex align="center" gap="xs">
<Hotkey variant="debossed" value="enter" />
<Hotkey variant="debossed" value="Enter" />
<Text size="xs" variant="muted">
{t('Select')}
</Text>
</Flex>
<Flex align="center" gap="xs">
<Hotkey variant="debossed" value="shift+enter" />
<Hotkey variant="debossed" value="Shift+Enter" />
<Text size="xs" variant="muted">
{t('New tab')}
</Text>
Expand All @@ -1231,7 +1231,7 @@ function CommandPaletteHints() {
<Text size="xs" variant="muted">
{t('Toggle Command Palette')}
</Text>
<Hotkey variant="debossed" value="mod+k" />
<Hotkey variant="debossed" value="Mod+K" />
</Flex>
</Flex>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ export function CommandPaletteHotkeys() {
// oxlint-disable-next-line react/exhaustive-effect-dependencies
}, [location.pathname, dispatch]);

useHotkeys([
{
match: COMMAND_PALETTE_HOTKEYS,
includeInputs: true,
useHotkeys(
COMMAND_PALETTE_HOTKEYS.map(hotkey => ({
hotkey,
options: {ignoreInputs: false},
callback: () => {
if (!organization) {
return;
Expand All @@ -215,8 +215,8 @@ export function CommandPaletteHotkeys() {
isSeerExplorerEnabled(organization) ? openSeerExplorer : undefined
);
},
},
]);
}))
);

return null;
}
Expand Down
4 changes: 2 additions & 2 deletions static/app/components/core/drawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ export function GlobalDrawer({children}: any) {
// Close the drawer when escape is pressed.
useHotkeys([
{
match: 'Escape',
enabled: isDrawerOpen,
hotkey: 'Escape',
options: {enabled: isDrawerOpen},
callback: () => {
handleClose();
},
Expand Down
Loading
Loading