1
0

Save point: double-click/tap skips scene via synthetic Escape event

This commit is contained in:
avi
2026-05-17 20:17:15 -05:00
parent 62ccf26c0e
commit fc19f9a00a
2 changed files with 10 additions and 2 deletions

View File

@@ -5836,10 +5836,14 @@ html[data-view="mobile"] #exfilDeskCanvas { max-height: 500px; }
showTechHub(); showTechHub();
}); });
// Double-click/tap to skip scene (same as Escape on desktop)
document.addEventListener('dblclick', () => {
document.dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', bubbles: true }));
});
// Keyboard shortcuts for testing // Keyboard shortcuts for testing
document.addEventListener('keydown', (e) => { document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') { if (e.key === 'Escape') {
if (isAndroidApp) return;
// SceneRefs: return to caller // SceneRefs: return to caller
const refsDiv = document.getElementById('sceneRefs'); const refsDiv = document.getElementById('sceneRefs');
if (refsDiv.classList.contains('visible')) { if (refsDiv.classList.contains('visible')) {

View File

@@ -5836,10 +5836,14 @@ html[data-view="mobile"] #exfilDeskCanvas { max-height: 500px; }
showTechHub(); showTechHub();
}); });
// Double-click/tap to skip scene (same as Escape on desktop)
document.addEventListener('dblclick', () => {
document.dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', bubbles: true }));
});
// Keyboard shortcuts for testing // Keyboard shortcuts for testing
document.addEventListener('keydown', (e) => { document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') { if (e.key === 'Escape') {
if (isAndroidApp) return;
// SceneRefs: return to caller // SceneRefs: return to caller
const refsDiv = document.getElementById('sceneRefs'); const refsDiv = document.getElementById('sceneRefs');
if (refsDiv.classList.contains('visible')) { if (refsDiv.classList.contains('visible')) {