Skip to content

fix: ignore floor shortcuts while typing in the seed field - #131

Merged
Joltras merged 1 commit into
devfrom
fix/ui-entry-shortcuts
Nov 3, 2026
Merged

Joltras merged 1 commit into
devfrom
fix/ui-entry-shortcuts

Conversation

@Joltras

@Joltras Joltras commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Proposed changes

Space and the arrow keys were bound to the whole window, so typing a space in the next seed field immediately generated a floor and moving the cursor with the arrow keys switched between floors. These shortcuts are now ignored while the seed field or a button has the focus. Pressing enter generates a floor and leaves the field, escape leaves it without generating, and clicking the floor also removes the focus from the field, so the shortcuts work again right away.

Types of changes

What types of changes does your code introduce to this project?
Put an x in the boxes that apply

  • [x ] Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

@Joltras
Joltras merged commit cc33a95 into dev Nov 3, 2026
4 checks passed
@Joltras
Joltras deleted the fix/ui-entry-shortcuts branch November 3, 2026 15:32
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