Add Enter/Space key support on Continue screen
This commit is contained in:
@@ -347,6 +347,9 @@ class Game {
|
|||||||
/* Title */
|
/* Title */
|
||||||
if (s === 'title' && (e.key==='Enter'||e.key===' ')) { document.getElementById('screen-title').click(); return; }
|
if (s === 'title' && (e.key==='Enter'||e.key===' ')) { document.getElementById('screen-title').click(); return; }
|
||||||
|
|
||||||
|
/* Continue screen */
|
||||||
|
if (s === 'continue' && (e.key==='Enter'||e.key===' ')) { document.getElementById('btn-continue-save')?.click(); return; }
|
||||||
|
|
||||||
/* Intro */
|
/* Intro */
|
||||||
if (s === 'intro' && (e.key==='Enter'||e.key===' '||e.key==='e'||e.key==='E')) { this.advanceIntro(); return; }
|
if (s === 'intro' && (e.key==='Enter'||e.key===' '||e.key==='e'||e.key==='E')) { this.advanceIntro(); return; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user