GTK4 GUI cannot use an input method to compose text: the IM popup appears for a moment and immediately disappears.
The previous code attached the key event controller to gui.mainwin and called gtk_im_context_filter_keypress() manually inside key_press_event(). In GTK4 that does not work reliably with GtkEventControllerKey.
This change attaches the key controller to gui.drawarea and binds the IM context to the controller via gtk_event_controller_key_set_im_context(). GTK4 then routes key events through the IM automatically (preedit/commit signals fire, and key-pressed is suppressed when the IM consumes the key), so the manual gtk_im_context_filter_keypress() call is no longer needed.
Fixes #20257
https://github.com/vim/vim/pull/20266
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@mattn pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@mattn pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@mattn pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@mattn pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@mattn pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@lilydjwg does this fix your issue?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@chrisbra we are discussing at the original issue. (I'm not sure whether the discussion should move from issue to pr. I didn't for my recent issues.)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@mattn pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()