ovis icon indicating copy to clipboard operation
ovis copied to clipboard

Shortcuts: the Alt chords the app takes cannot be unbound (Hold message in chat has no Off)

Open NicoLeo13 opened this issue 1 week ago • 0 comments

Problem

I need Alt free for the agent I type into (pi, for example). In Settings → Shortcuts every row has Record and an Off option ("Send keys to terminal") — except two: Dictate (hold) and Hold message in chat. The second is Alt+Enter, the only Alt chord in the list, so it is exactly the one that cannot be freed.

What the code says (v0.5.9, also on main)

  • src/lib/shortcuts.ts:42 — listedOnly() returns true for voice and hold-message, and src/components/SettingsDialog.tsx:1052 renders those rows as plain <kbd> instead of the Record button and the select. No Off, no re-record.
  • src/components/Composer.tsx:988 — Alt+Enter sets hold in the chat composer, and the handler calls preventDefault() before anything else sees it.
  • src/lib/shortcuts.ts:143 — the global matcher skips listedOnly, and that is the whole point for me: a focused terminal already receives Alt+Enter, while the Chat box takes it. So this is a Chat-side gap, not a terminal one.

Two more Alt chords sit outside the configurable set entirely, hardcoded on focused widgets — they cannot be unbound either, though they only matter while that widget has focus:

  • src/components/Sidebar.tsx:715 — Alt+↑/↓ reorders a workspace row while arranging.
  • src/components/TabStrip.tsx:475 — Alt+Shift+←/→ moves the focused tab.

And in the desktop app, autoHideMenuBar: true (app/electron/src/main.ts:296) means Alt also pops the hidden menu bar, which is Electron's documented behaviour for that option. I have not confirmed on 0.5.9 whether that also disturbs an Alt press meant for a pane; if it does, it is the same complaint from the app side.

Proposal

Make those two rows behave like every other row: recordable, and switchable Off. The smallest version is to let the hold action be turned off, or to move it to a chord already in the configurable set (Mod+Shift+Enter), so no Alt chord is reserved anywhere.

Relation to #4620: same key, different ask. That one wants Alt+Enter to insert a newline in the composer; this one wants an opt-out so the app stops holding an Alt chord. A single choice for Alt+Enter — queue / newline / off — would settle both.

Happy to test a branch: Chat composer, Terminal pane with a TUI that reads Alt+Enter, and the desktop app on Fedora 44 (KDE Wayland).

NicoLeo13 avatar Nov 25 '26 02:11 NicoLeo13