The open source coding agent.
TypeScript
fix: display arrow keys as symbols in keybind formatting
David Hill69215d456c54
diff --git a/packages/app/src/context/command.tsx b/packages/app/src/context/command.tsxindex 3c640d8e9fa..a93ffc02454 100644--- a/packages/app/src/context/command.tsx+++ b/packages/app/src/context/command.tsx@@ -104,7 +104,15 @@ export function formatKeybind(config: string): string {if (kb.meta) parts.push(IS_MAC ? "⌘" : "Meta")if (kb.key) {- const displayKey = kb.key.length === 1 ? kb.key.toUpperCase() : kb.key.charAt(0).toUpperCase() + kb.key.slice(1)+ const arrows: Record<string, string> = {+ arrowup: "↑",+ arrowdown: "↓",+ arrowleft: "←",+ arrowright: "→",+ }+ const displayKey =+ arrows[kb.key.toLowerCase()] ??+ (kb.key.length === 1 ? kb.key.toUpperCase() : kb.key.charAt(0).toUpperCase() + kb.key.slice(1))parts.push(displayKey)}