Skip to content

Disable IM unconditionally at FakeVim install time#3653

Merged
hluk merged 1 commit into
masterfrom
fix-fakevim
Jun 29, 2026
Merged

Disable IM unconditionally at FakeVim install time#3653
hluk merged 1 commit into
masterfrom
fix-fakevim

Conversation

@hluk

@hluk hluk commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Disable WA_InputMethodEnabled once in TextEditWrapper::install() and block QEvent::InputMethod/InputMethodQuery in eventFilter(). The attribute alone is insufficient on Wayland where the compositor can still deliver IM events via the text-input protocol. Together these prevent the platform IM framework from intercepting key presses, which broke undo grouping (each character became a separate undo step) and visual-block insert replay.

Remove the per-mode-change workarounds that were insufficient:

  • setInsertMode() method and m_insertMode member
  • modeChanged signal connection
  • QInputMethodEvent include

Assisted-by: Claude (Anthropic)

Disable WA_InputMethodEnabled once in TextEditWrapper::install()
and block QEvent::InputMethod/InputMethodQuery in eventFilter().
The attribute alone is insufficient on Wayland where the compositor
can still deliver IM events via the text-input protocol.  Together
these prevent the platform IM framework from intercepting key
presses, which broke undo grouping (each character became a separate
undo step) and visual-block insert replay.

Remove the per-mode-change workarounds that were insufficient:
- setInsertMode() method and m_insertMode member
- modeChanged signal connection
- QInputMethodEvent include

Assisted-by: Claude (Anthropic)
@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.57%. Comparing base (7d5307d) to head (5b8a2aa).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3653      +/-   ##
==========================================
+ Coverage   74.34%   74.57%   +0.22%     
==========================================
  Files         256      256              
  Lines       37970    37968       -2     
  Branches     5123     5121       -2     
==========================================
+ Hits        28230    28314      +84     
+ Misses       9740     9654      -86     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hluk hluk merged commit 0dd5099 into master Jun 29, 2026
13 checks passed
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