Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make fl_engine_send_key_event into a standard async function. #57112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

robert-ancell
Copy link
Contributor

Add missing tests for this function.

Note this makes FlKeyboardManager a bit more complex, but this is planned to be simplified in a future refactor.

Add missing tests for this function.

Note this makes FlKeyboardManager a bit more complex, but this is planned to be
simplified in a future refactor.
Copy link

@mattkae mattkae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a design question, but feel free to ignore if you have a good reason for doing otherwise

static_cast<SendKeyEventData*>(user_data);
gboolean handled = FALSE;
g_autoptr(GError) error = nullptr;
if (!fl_engine_send_key_event_finish(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make more sense for fl_engine_send_key_event to call fl_engine_send_key_event_finish automatically for us before calling the user provided callback? If it always has to be called after fl_engine_send_key_event gets called, it would make sense to encapsulate it at that level instead of putting the onus on the caller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants