Skip to content

Windows 3.0.1: fix Enter on alert browser lists#104

Merged
kellylford merged 1 commit into
mainfrom
windows-enter-fix
Jul 23, 2026
Merged

Windows 3.0.1: fix Enter on alert browser lists#104
kellylford merged 1 commit into
mainfrom
windows-enter-fix

Conversation

@kellylford

Copy link
Copy Markdown
Owner

Enter did nothing on the Browse Weather Alerts region/group/area lists (and the per-city alerts list) because those wx.Dialog listboxes lacked wx.WANTS_CHARS, so the dialog ate the Enter key before the handler saw it. Match the working city-list config (WANTS_CHARS + Return/Tab handling). Ships as 3.0.1 so 3.0.0 users get it via auto-update.

The alert-browser lists (region, event group, area) and the per-city alerts
list were created without wx.WANTS_CHARS. Inside a wx.Dialog, a control does
not receive the Enter (or Tab) key event without that style — the dialog
consumes it for navigation — so the EVT_KEY_DOWN/Return handler never fired and
Enter did nothing. (The search-results list only worked because Enter hits the
default OK button; the alert-browser advance buttons aren't defaults.)

Match the main city list's proven config: LB_SINGLE | WANTS_CHARS with an
EVT_KEY_DOWN handler that advances on Return and re-implements Tab so keyboard
focus can still leave the list.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@kellylford
kellylford merged commit 783ed64 into main Jul 23, 2026
3 checks passed
@kellylford
kellylford deleted the windows-enter-fix branch July 23, 2026 09:26
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