Skip to content

fix: allow normal input on editables when keys overlap with map inter…#365

Merged
warm-coolguy merged 6 commits intomainfrom
fix/prevent-normal-input-prevention-on-editables
Sep 25, 2025
Merged

fix: allow normal input on editables when keys overlap with map inter…#365
warm-coolguy merged 6 commits intomainfrom
fix/prevent-normal-input-prevention-on-editables

Conversation

@warm-coolguy
Copy link
Member

Summary

Previously, OL keyboard interactions would prevent the handling of "+", "-", and the ArrowKeys by editable elements like <input>. This has now been resolved.

Instructions for local reproduction and review

To test, check whether the input elements in the Snowbox now accept ArrowUp, ArrowRight, ArrowDown, and ArrowLeft as regular inputs to move the cursor within the entered text, and + and - keys now result in those characters appearing instead of using them to zoom. At the same time, all of these inputs shall result in the usual map panning and zooming when the map itself is focused.

Please verify functionality on Safari Desktop.

Pull Request Checklist (for Assignee)

  • Changelogs are maintained
  • Functionality has been tested in Firefox, Chrome, Safari (Mobile Only)
  • Functionality has been tested on a smartphone

@warm-coolguy warm-coolguy self-assigned this Sep 23, 2025
@warm-coolguy warm-coolguy added the bug Something isn't working label Sep 23, 2025
Copy link
Member

@dopenguin dopenguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warm-coolguy and others added 5 commits September 24, 2025 06:26
apply suggestion "remove optional filename extension"

Co-authored-by: Pascal Röhling <73653210+dopenguin@users.noreply.github.com>
apply suggestion "revert version to unpublished"

Co-authored-by: Pascal Röhling <73653210+dopenguin@users.noreply.github.com>
@warm-coolguy
Copy link
Member Author

🏓 @warm-coolguy

🏓 @dopenguin

Copy link
Member

@dopenguin dopenguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@warm-coolguy warm-coolguy merged commit ad70eaa into main Sep 25, 2025
4 checks passed
@warm-coolguy warm-coolguy deleted the fix/prevent-normal-input-prevention-on-editables branch September 25, 2025 10:38
dopenguin added a commit that referenced this pull request Dec 5, 2025
… interactions

Fix introduced in #365.

Co-authored-by: Dennis Sen <dennis.sen@dataport.de>
dopenguin added a commit that referenced this pull request Dec 5, 2025
Fix introduced in #365.

Co-authored-by: Dennis Sen <dennis.sen@dataport.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants