]> git.lyx.org Git - lyx.git/commitdiff
fix the KP_ problem
authorLars Gullik Bjønnes <larsbj@gullik.org>
Mon, 18 Dec 2000 14:21:57 +0000 (14:21 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Mon, 18 Dec 2000 14:21:57 +0000 (14:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1283 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
src/lyxfunc.C

index 433f0899fd73f543a6ab11af169ed3f21a3e3b5d..4e71f250bfa8c398e676b0e9432921c5f9752407 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-18  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * src/lyxfunc.C (processKeySym): discover the correct argument if
+       the action is LFUN_SELFINSERT
+
 2000-12-18  Dekel Tsur  <dekelts@tau.ac.il>
 
        * src/mathed/math_cursor.C (Interpret) Suppress a debug message
index ac9c22fbb9a089ff491032ab3c7f5200675ac01e..2510ea6b43bade9f38ff43fdbcb2d95d1115c57c 100644 (file)
@@ -270,7 +270,17 @@ int LyXFunc::processKeySym(KeySym keysym, unsigned int state)
                        // so we`ll skip the dispatch.
                        return 0;
                }
+       } else if (action == LFUN_SELFINSERT) {
+               // We must set the argument to the char looked up by
+               // XKeysymToString
+               char const * tmp = XKeysymToString(keysym);
+               // if (!argument.empty()) {
+               argument = tmp ? tmp : "";
+               // }
+               lyxerr[Debug::KEY] << "SelfInsert arg["
+                                  << argument << "]" << endl;
        }
+       
 
         bool tmp_sc = show_sc;
        show_sc = false;