Add Enter/Space key support on Continue screen
This commit is contained in:
1 parent
bb5c1a7316
commit
3ba8f0e437
1 file changed
+3
@@ -347,6 +347,9 @@ class Game {
|
||||
/* Title */
|
||||
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 */
|
||||
if (s === 'intro' && (e.key==='Enter'||e.key===' '||e.key==='e'||e.key==='E')) { this.advanceIntro(); return; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user