forked from avi/signalelsewhere
Save point: double-click/tap skips scene via synthetic Escape event
This commit is contained in:
@@ -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')) {
|
||||||
|
|||||||
@@ -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')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user