Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(mobile): Keep hardware keyboard setup steps readable and suggest Option-D (#2405)

Chad Piha9c5cc52194e8
diff --git a/openwhispr-mobile/src/screens/HardwareKeyboardShortcutScreen.tsx b/openwhispr-mobile/src/screens/HardwareKeyboardShortcutScreen.tsx
index ab4560236..e78327b77 100644
--- a/openwhispr-mobile/src/screens/HardwareKeyboardShortcutScreen.tsx
+++ b/openwhispr-mobile/src/screens/HardwareKeyboardShortcutScreen.tsx
@@ -18,7 +18,8 @@ import { LiveActivity } from '../../modules/live-activity/src';
export const SHORTCUTS_CREATE_URL = 'shortcuts://create-shortcut';
export const SHORTCUTS_APP_URL = 'shortcuts://';
-const SUGGESTED_COMBO = '⌃⌥D';
+// Full Keyboard Access claims Tab and Fn combos by default and no Option ones.
+const SUGGESTED_COMBO = '⌥D';
// iOS can refuse the editor deep link. The Shortcuts app itself is enough, since
// step 2 says which action to add, and a refusal must never become an error screen.
@@ -110,8 +111,8 @@ export function HardwareKeyboardShortcutScreen() {
iconStyle="line"
icon="keyboard"
mdIcon="Keyboard"
- title="Settings → Accessibility → Keyboards & Typing → Full Keyboard Access"
- description="Turn the Full Keyboard Access switch on. The shortcut does nothing while it is off."
+ title="Full Keyboard Access"
+ description="In Settings → Accessibility → Keyboards & Typing, turn Full Keyboard Access on. The shortcut does nothing while it is off."
showChevron={false}
/>
</SettingsSection>
@@ -120,8 +121,8 @@ export function HardwareKeyboardShortcutScreen() {
iconStyle="line"
icon="command"
mdIcon="Command"
- title="Commands → Shortcuts → Toggle OpenWhispr Dictation"
- description={`Press the keys you want to use. ${SUGGESTED_COMBO} (Control-Option-D) is free by default.`}
+ title="Toggle OpenWhispr Dictation"
+ description={`In Full Keyboard Access, open Commands, tap this action under Shortcuts, then press ${SUGGESTED_COMBO} (Option-D).`}
showChevron={false}
/>
</SettingsSection>
@@ -141,7 +142,7 @@ export function HardwareKeyboardShortcutScreen() {
<SettingsTextFieldRow
icon="text.cursor"
mdIcon="TextCursorInput"
- placeholder={`Press ${SUGGESTED_COMBO}, speak, press it again, then ⌘V`}
+ placeholder={`${SUGGESTED_COMBO}, speak, ${SUGGESTED_COMBO}, then ⌘V`}
value={tryText}
onChangeText={setTryText}
testID="hardware-keyboard-try-it"
diff --git a/openwhispr-mobile/src/screens/__tests__/HardwareKeyboardShortcutScreen.test.tsx b/openwhispr-mobile/src/screens/__tests__/HardwareKeyboardShortcutScreen.test.tsx
index 8ab0bdb11..24a4b03e8 100644
--- a/openwhispr-mobile/src/screens/__tests__/HardwareKeyboardShortcutScreen.test.tsx
+++ b/openwhispr-mobile/src/screens/__tests__/HardwareKeyboardShortcutScreen.test.tsx
@@ -79,6 +79,13 @@ describe('HardwareKeyboardShortcutScreen', () => {
await waitFor(() => expect(mockGetStatus).toHaveBeenCalled());
});
+ it('suggests Option-D, which Full Keyboard Access leaves free', async () => {
+ render(<HardwareKeyboardShortcutScreen />);
+ expect(screen.getByText(/then press ⌥D \(Option-D\)\./)).toBeTruthy();
+ expect(screen.queryByText(/⌃/)).toBeNull();
+ await waitFor(() => expect(mockGetStatus).toHaveBeenCalled());
+ });
+
it('hides the notifications step once notifications are allowed', async () => {
render(<HardwareKeyboardShortcutScreen />);
await waitFor(() => expect(mockGetStatus).toHaveBeenCalled());