fix(ui): keep input typable post-end so player can type restart/undo
Disabling the input via the disabled attribute blocks keydown events entirely, so players couldn't type 'restart' or 'undo' after reaching an ending. Switch to a CSS class for the faded visual state; the keydown handler already restricts post-end input to those two commands. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+2
-3
@@ -179,7 +179,6 @@
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
[data-mystery-input]:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
[data-mystery-input].ended {
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user