]> 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>
Sun, 9 Sep 2018 17:43:18 +0000 (19:43 +0200)
commit014227cc402deb0b8afad0ffd716b8c828373a03
tree318886c5dd0411665859c78c188014f8f29dfff0
parentae8c0b29769915967c91d5923c2c02a695137f0f
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.

(cherry picked from commit ad5548cfe39a17389ca721aab896e876f2cd4124)
src/Text3.cpp
src/frontends/qt4/GuiWorkArea.cpp
src/mathed/InsetMathNest.cpp
src/mathed/InsetMathNest.h
status.23x