mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 01:02:23 +00:00
Fix Stories navigation, sharing, and voice entry
This commit is contained in:
1 parent
5418438339
commit
9e9ce1db22
43 files changed
+744
-137
No files matched your search
@@ -3,6 +3,7 @@ import {
|
||||
PUSH_TO_TALK_HOLD_DELAY_MS,
|
||||
MICROPHONE_VISUALIZER_GATE,
|
||||
ASSISTANT_VISUALIZER_GATE,
|
||||
isStoriesOpen,
|
||||
isPushToTalkKey,
|
||||
SPACE_INTERACTIVE_SELECTOR,
|
||||
isInteractiveSpaceTarget,
|
||||
@@ -59,7 +60,7 @@ export class RealtimeInput {
|
||||
// Stories owns the keyboard (body.stories-mode).
|
||||
if (
|
||||
this.ui.state?.chat?.open === true ||
|
||||
globalThis.document?.body?.classList?.contains?.('stories-mode') ||
|
||||
isStoriesOpen() ||
|
||||
!shouldHandlePushToTalkKeyDown(event)
|
||||
)
|
||||
return;
|
||||
@@ -95,6 +96,10 @@ export class RealtimeInput {
|
||||
this.pushToTalkHoldTimer = null;
|
||||
if (holdGeneration !== this.pushToTalkHoldGeneration) return;
|
||||
if (!this.spaceKeyHeld || this.pushToTalkKeyHeld) return;
|
||||
if (isStoriesOpen()) {
|
||||
this.shortcutBlurHandler();
|
||||
return;
|
||||
}
|
||||
// A pointer or Tab focus change during the delay cancels the original
|
||||
// gesture rather than letting voice claim a key held for another owner.
|
||||
if (document.activeElement !== this.pushToTalkHoldFocusOwner) return;
|
||||
|
||||
Reference in new issue
Block a user