hex/src/windows
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax 221a8bcf48
Windows: dictation defaults to Left Alt alone (#2292)
* windows: default the dictation shortcut to the left alt key

Alt sits under the thumb where Option does on a Mac, so holding it to
dictate stops straining the pinky for Ctrl+Space (#2278).

The left Alt only: Windows sends AltGr as a synthesized Left Ctrl plus
the Right Alt, so an either-side Alt would press on every AltGr character,
start a capture, and cancel it when the character joined. A saved
shortcut stays as saved; there is no migration.

The site's hero key and its "Hold …" line follow the selected install tab
(Option, Alt, Alt+Space), and its keycap names that key.

* docs: say the alt chord discards before the hold threshold

* hotkeys: only Linux still builds a Control modifier helper

* tests: pass the windows suite with its new default and CRLF checkout

The playground list test compared the first story to the second through the dictation shortcut, which is now the left Alt on Windows, the same binding the Left Option shortcut story sets; it steps to the third story (Toggle cancel) instead. The bundled skill and the Swift instructions tests normalize CRLF, which a Windows checkout writes into include_str!.

* windows: a modifier outside the shortcut joins as a chord

A modifier-only hold (Left Alt by default) treated Shift, Ctrl, Win, or
the other Alt going down as its release: Hold finished and pasted,
Toggle locked a recording, and Left Alt+Shift injected the 0xE8 mask key
before Alt's release, breaking Windows' input-language switch.

It is a chord like any key now: the press cancels (Labs › Hold through
other keys keeps a hold a second or more old), Toggle locks nothing, and
Alt's release is the app's, so Ctrl+Alt+V still fires Paste Last. A
modifier the chord names is part of it, whichever order the keys go down
in. The modifier-event policy moved to input/modifier_chord.rs, and the
new tests to input/tests/chords.rs, so input.rs stays under its cap.

* site: the show's keycap names the selected OS's shortcut

The animation's shattering keycap was always the Mac's option key. It
takes the same lowercase legend the hero keycap shows now: option with
the glyph, alt, or alt + space.

* tests: import the right shift key the chords hold

* docs: a joined hold leaves alt release to the app

* docs: a swallowed key re-arms alt's release mask

A modifier joining a Left Alt hold leaves Alt's release to the app, but only when Hex swallowed nothing. Paste Last's V is Hex's key, so the mask comes back and the app never reads a lone Alt tap. Say so in windows.md and the feature map, and name the test that holds it.

* site: keep the keycap legend on the dish's bottom row

With the Mac's glyph omitted on Windows and Linux, the label was the dish's only child and space-between put it at the top, while the canvas shatter draws the legend at the bottom. An auto top margin keeps both in the same place; the Mac's glyph and label are unchanged.

* docs: qualify alt's release after a joined hold

Alt's release is the app's after a joining modifier cancels the hold, but not after Hex swallows a key of the chord: Paste Last's V re-arms the mask. Say so in the hook and test comments, and stop claiming every Hold-mode dictation finishes when a tap or chord discards.

* tests: one test at a time drives the windows hook's global state

Paste Last's Ctrl+Alt+V does not leave Alt's release unmasked: its V is
Hex's key, so that chord masks (#1254). Only a hold a joining modifier
cancelled leaves the release to the app. The docs say so now.

Under plain `cargo test` the hook tests share one process, so a static
test lock serializes everything that installs, drives, or clears
CALLBACK_STATE.

---------

Co-authored-by: opencode <opencode@anoma.ly>
2026-11-21 21:38:29 -05:00
..
dictation windows: don't paste into the desktop or taskbar, keep the dictation on the clipboard (#2016) 2026-11-19 19:10:26 -05:00
input Windows: dictation defaults to Left Alt alone (#2292) 2026-11-21 21:38:29 -05:00
app.rs windows: don't paste into the desktop or taskbar, keep the dictation on the clipboard (#2016) 2026-11-19 19:10:26 -05:00
audio_control.rs labs: apply While dictating only on speakers (#1610) 2026-11-09 20:24:42 -05:00
context.rs windows: name the website of browser meeting calls (#2079) 2026-11-20 15:03:41 -05:00
dictation.rs windows, linux: keep a dictation press across a microphone reopen (#2098) 2026-11-20 16:58:08 -05:00
gpu_fallback.rs windows: recover from a lost gpu after standby; hud and gpu marker fixes (#1652) 2026-11-10 21:02:53 -05:00
input.rs Windows: dictation defaults to Left Alt alone (#2292) 2026-11-21 21:38:29 -05:00
login_item.rs fix(windows): keep Launch at login on the installed version after a manual upgrade (t1510) (#1670) 2026-11-10 17:34:25 -08:00
paste.rs windows: don't paste into the desktop or taskbar, keep the dictation on the clipboard (#2016) 2026-11-19 19:10:26 -05:00
rune.rs follow overlay recording setting live on windows (#2114) (#2121) 2026-11-20 19:53:12 -05:00
vulkan.rs windows: start without a Vulkan 1.2 driver (#1240) (#1249) 2026-11-04 03:51:13 -05:00