]> git.lyx.org Git - features.git/commit
Make input methods support great again
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 22 Jul 2017 22:56:27 +0000 (00:56 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 15 Feb 2018 11:29:25 +0000 (12:29 +0100)
commit9ef52806f8ff80bf1325368f07ba07a83172f7da
tree86859aab1d888f0c2025ffec09a0c55ace16df1e
parent418bf09879dfad860e298f0f3b16d765bb1262d5
Make input methods support great again

This unbreaks input methods by splitting the part of the code that
does the actual drawing to a separate paintPreeditText() method which
is called from paintEvent().

The proper solution would have been to introduce the preedit string in
the Row object, like is done for completion, but this is too complex
to do at this point.

The only change in behavior is that now the commit string is inserted
in one fell swoop, intead of emulating a number of key events.
src/frontends/qt4/GuiWorkArea.cpp
src/frontends/qt4/GuiWorkArea_Private.h