properly commit preedit text
This commit is contained in:
parent
a35f5e81cd
commit
d765305595
2 changed files with 4 additions and 1 deletions
|
|
@ -9,6 +9,7 @@
|
|||
#include <QDropEvent>
|
||||
#include <QFileDialog>
|
||||
#include <QGuiApplication>
|
||||
#include <QInputMethod>
|
||||
#include <QMimeData>
|
||||
#include <QMimeDatabase>
|
||||
#include <QStandardPaths>
|
||||
|
|
@ -234,6 +235,8 @@ InputBar::nextText()
|
|||
void
|
||||
InputBar::send()
|
||||
{
|
||||
QInputMethod *im = QGuiApplication::inputMethod();
|
||||
im->commit();
|
||||
if (text().trimmed().isEmpty())
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue