[macOS] wxRichTextCtrl doesn't position and show candidate of IME correctly on macOS (Issue #24556)

11 views
Skip to first unread message

crml2024

unread,
May 25, 2024, 7:17:59 AMMay 25
to wx-...@googlegroups.com, Subscribed

Description

Platform and version information

  • wxWidgets version you use: 3.2.5
  • wxWidgets port you use: wxOSX
  • OS and its version: macOS 14.4

Bug description:

richtext-test1.png (view on web)

When using wxRichTextCtrl (in arbitrary window) on macOS 14, the windows of the IME (Simplified Chinese in this case) for input is incorrectly placed at the bottom of the screen.

It seems that the general implementation of wxRichTextCtrl can't be correctly recongized by macOS as an input area. #18786 is somehow similar.

To Reproduce:

  1. Build the sample in samples/richtext on macOS 14;
  2. Run the program and select an input area.
  3. Use an IME to input.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24556@github.com>

VZ

unread,
May 25, 2024, 9:59:17 AMMay 25
to wx-...@googlegroups.com, Subscribed

Sorry, I know even less about IME under macOS than under the other platforms, so I have no idea how to fix this. Any ideas or PRs would be very welcome!


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24556/2131282799@github.com>

Mark Roszko

unread,
May 25, 2024, 1:39:50 PMMay 25
to wx-...@googlegroups.com, Subscribed

Apparently -[NSTextInputClient firstRectForCharacterRange:] needs to be implemented in objective c. This provides the ime the bounding box of text to place against.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24556/2131371153@github.com>

Reply all
Reply to author
Forward
0 new messages