Provide some control over IME (PR #27026)

17 views
Skip to first unread message

VZ

unread,
Sep 19, 2026, 8:59:03 PM (2 days ago) Sep 19
to wx-...@googlegroups.com, Subscribed

Allow enabling/disabling the IME and positioning its window.

This is still WIP but any testing, especially by people actually using IME would be very welcome. I've did some myself using Microsoft Bopomofo and Pinyin under Windows and Fcitx Pinyin under Linux and I could enter "nihao" and "womenhao" (I've tried using input that produces multiple characters) and this seemed to work correctly but I couldn't (and probably won't be able to) test under macOS and I have no idea if the behaviour is not wrong in some non-obvious way.

For example, under Windows I see that the indicator on the taskbar switches to English when focus is on the read-only grid cell and back to Chinese when it goes away from it. Is this expected behaviour? I'm not sure if we can avoid this, but it looks a bit annoying...

Thanks in advance for any testing!


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/27026

Commit Summary

  • 76e685f Move IMM function wrappers used in wxMSW into a class
  • c9d12fc Add wxIMCContext RAII helper wrapping HIMC
  • cc43fa9 Add wxWindow::EnableInputMethod() for disabling IME
  • a9390a6 Prevent IME from being used for read-only wxGrid cells
  • 4a80ac3 Make wxGTK wxScrolled::GetViewStart() behave as the generic version
  • 068588b Provide a way to position IME window

File Changes

(13 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/27026@github.com>

VZ

unread,
Sep 20, 2026, 3:36:08 PM (2 days ago) Sep 20
to wx-...@googlegroups.com, Push

@vadz pushed 2 commits.

  • eb685ad Disable IME when the current wxGrid cell doesn't support text input
  • d9b2e44 Disable IME in generic wxDataViewCtrl


View it on GitHub or unsubscribe.


Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/27026/before/068588b2f7560a422bfd229c99e3dd05a5f0eb6b/after/d9b2e44f370522bd604f5c202c0645d0e9dc5eb8@github.com>

VZ

unread,
Sep 20, 2026, 3:38:36 PM (2 days ago) Sep 20
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#27026)

Actually after 2 other minor fixes I don't think there is anything really missing here, so I'd like to merge this.

Of course, it would be best if this could be tested first but, from prior experience, it seems unlikely that anybody is going to do it before it's in master anyhow, so unless someone points out some serious problems with this PR soon, I'll merge it.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/27026/c5752162627@github.com>

Reply all
Reply to author
Forward
0 new messages