]> git.lyx.org Git - features.git/commit
Fixes to input method handling
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 5 Jul 2018 12:01:56 +0000 (14:01 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 5 Jul 2018 12:32:37 +0000 (14:32 +0200)
commitad5548cfe39a17389ca721aab896e876f2cd4124
tree2c7e691f48974226f890099c55b051dadf385912
parentdb9c8c6d0229eccdcc28d55eead018d9e40347a4
Fixes to input method handling

The goal of this patch is to make "self-insert <string>" act as a
sequence of individual self-insert calls. Once it is done, the
insertion of the commit string in GuiWorkArea can use that, which
fixes the issues described in bug 11183.

1/ in InsetMathNest, SELF_INSERT is rewritten to be a proper loop of
   interpretChar, instead of inserting the string as characters. This
   solves the issue of interpreting ^ properly.

2/ the text version does not need to be changed (the loop is rewritten
   using a range, though).

3/ Then {{{GuiWorkArea::inputMethodEvent}}} is changed to invoke
   directly self-insert. This removes the update issues.

Fixes bug 11183.
src/Text3.cpp
src/frontends/qt4/GuiWorkArea.cpp
src/mathed/InsetMathNest.cpp
src/mathed/InsetMathNest.h