[eric] voice: ambient typing no longer suppresses the legacy chord under an fn primary

This commit is contained in:
ciregenz
2026-08-05 22:57:20 -07:00
parent dff37925b7
commit 753903cc16
+4 -2
View File
@@ -106,10 +106,12 @@ function installVoiceHotkey(getMainWindow) {
registeredAccel = null;
};
// Fallback toggle, deferred so a live tap's hold-down wins the same press.
// Fallback toggle, deferred so a live tap's hold-down wins the same press. The freshness guard
// only applies when the tap can SERVE the primary: under an fn primary the tap sees every key yet
// handles none, and ambient typing was suppressing the legacy chord entirely (caught live).
const sendFallbackToggle = () => {
setTimeout(() => {
if (Date.now() - lastTapKeyMs < TAP_FRESH_MS) return;
if (combo.special !== 'fn' && Date.now() - lastTapKeyMs < TAP_FRESH_MS) return;
send('voice:toggle');
}, FALLBACK_DEFER_MS);
};