mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
Merge branch 'macos-input-method' into 'master'
fix: make input method work again in gtk4 Closes #3968 See merge request GNOME/gtk!3668
This commit is contained in:
commit
a6b4e53dca
@ -145,6 +145,7 @@ ensure_gl_view (GdkMacosGLContext *self)
|
||||
[nsview setPostsFrameChangedNotifications: YES];
|
||||
[nsview setNeedsDisplay:YES];
|
||||
[nswindow setContentView:nsview];
|
||||
[nswindow makeFirstResponder:nsview];
|
||||
[nsview release];
|
||||
|
||||
if (self->dummy_view != NULL)
|
||||
|
@ -239,8 +239,7 @@ discard_preedit (GtkIMContext *context)
|
||||
|
||||
/* reset any partial input for this NSView */
|
||||
[(GdkMacosBaseView *)nsview unmarkText];
|
||||
NSInputManager *currentInputManager = [NSInputManager currentInputManager];
|
||||
[currentInputManager markedTextAbandoned:nsview];
|
||||
[[NSTextInputContext currentInputContext] discardMarkedText];
|
||||
|
||||
if (qc->preedit_str && strlen (qc->preedit_str) > 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user