Skip to content

fix: block broken button digits typed via keyboard#13

Open
Bindkushal wants to merge 1 commit intosugarlabs:mainfrom
Bindkushal:fix/block-keyboard-broken-buttons
Open

fix: block broken button digits typed via keyboard#13
Bindkushal wants to merge 1 commit intosugarlabs:mainfrom
Bindkushal:fix/block-keyboard-broken-buttons

Conversation

@Bindkushal
Copy link
Copy Markdown

Problem

Even though broken buttons were visually disabled and unclickable, a player could still type broken digits directly via keyboard into the equation display, bypassing the core game mechanic.

Fix

In _on_entry_changed() in activity.py, added real-time keyboard input filtering — if a broken digit is typed, it is silently removed from the display immediately, keeping the game mechanic consistent whether using mouse or keyboard.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant