fix: Replace Enter unicode character with 'ENTER' text in keyboard shortcuts #734
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem(s) was I solving?
The CodeLayer UI was inconsistently displaying keyboard shortcuts for the Enter key. The first-time modal (OptInTelemetryModal) and other UI components were using the Unicode character ⏎ (U+23CE) to represent the Enter key, while the standard practice across the codebase is to spell out "ENTER" as text. This created visual inconsistency and potential confusion for users.
Additionally, the keyboard shortcut format was inconsistent, sometimes showing
⌘ ENTER(with a space) instead of⌘+ENTER(with a plus sign), which is the standard notation for key combinations.What user-facing changes did I ship?
+symbol (e.g.,⌘+ENTERinstead of⌘ ENTER)How I implemented it
⏎characters to "ENTER" text⌘ ENTER→⌘+ENTER)Changes were made in 4 files:
humanlayer-wui/src/components/OptInTelemetryModal.tsxhumanlayer-wui/src/components/CommandInput.tsxhumanlayer-wui/src/components/internal/SessionDetail/components/DenyButtons.tsxhumanlayer-wui/src/components/internal/SessionDetail/components/ForkViewModal.tsxHow to verify it
Manual Testing
⌘+ENTERorCtrl+ENTER⌘+ENTERAutomated Testing
make check testto ensure no TypeScript errors or test failuresDescription for the changelog
fix: Standardize keyboard shortcut display to use "ENTER" text instead of Unicode character across all UI components