mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-10-01 14:04:51 +02:00
[eric] voice: ambient typing no longer suppresses the legacy chord under an fn primary
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user