Skip to content

fix: punctuation map tab/click blur due to rerender (related bd223d0)#374

Merged
eagleoflqj merged 2 commits into
masterfrom
entry
May 17, 2026
Merged

fix: punctuation map tab/click blur due to rerender (related bd223d0)#374
eagleoflqj merged 2 commits into
masterfrom
entry

Conversation

@eagleoflqj
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses focus loss/blur in the punctuation map editor caused by SwiftUI re-renders, and extends the Appium UI test suite to cover the punctuation map tab/focus behavior.

Changes:

  • Avoid unnecessary ListView state updates when the serialized list content hasn’t changed (to prevent focus resets).
  • Add an accessibility identifier to an ExternalView gear button to improve UI testability.
  • Add Appium helpers (scrolling, focus detection), update existing tests/fixtures, and add a new punctuation map Appium test.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/config/ListView.swift Adds a guard to skip list state updates when config value changes are semantically identical.
src/config/ExternalView.swift Adds an accessibility identifier to the default external-config gear button.
appium/util/window.py Adds a reusable scroll helper for macOS Appium tests.
appium/util/string.py Adds a helper to detect focus state on elements.
appium/util/button.py Switches undo/redo lookup to use find_elements_by_id.
appium/test_group.py Refactors inline scrolling to use the new scroll helper.
appium/test_entry.py Adds an Appium test validating punctuation map focus/tab behavior and persistence.
appium/conftest.py Introduces per-test config/data directories and injects FCITX_DATA_HOME for tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/config/ListView.swift
Comment thread src/config/ExternalView.swift
Comment thread appium/util/button.py
Comment thread appium/test_group.py
Comment thread appium/conftest.py
@github-actions
Copy link
Copy Markdown

arm64 comparison

No difference.

x86_64 comparison

No difference.

@eagleoflqj eagleoflqj merged commit 25796cd into master May 17, 2026
@eagleoflqj eagleoflqj deleted the entry branch May 17, 2026 16:38
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.

2 participants