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

[qtmozembed] Fix text input with xt9. JB#56870 #37

Merged
merged 1 commit into from Jan 18, 2022
Merged

Conversation

mkenttala
Copy link
Contributor

QMozViewPrivate::touchEvent issues the commit when screen is tapped and that sent the extra keypress with xt9. I didn't notice any problems in the browser test pages with this and also https://webk.telegram.org works.

@rainemak
Copy link
Member

I think title of this should be called "Fix text prediction input with xt9"

@mkenttala
Copy link
Contributor Author

Modified to use textevent only if previous input had preedit, so this change should only affect devices with xt9.

mView->SendTextEvent(event->commitString().toUtf8().data(), event->preeditString().toUtf8().data(), event->replacementStart(), event->replacementLength());
} else {
mView->SendKeyPress(0, 0, charCode);
mView->SendKeyRelease(0, 0, charCode);
}

Copy link
Member

Choose a reason for hiding this comment

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

Extra empty line.

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