From b4902ff0a3c5dfdde06502713c660c0a7b0b4b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Mon, 18 Dec 2000 14:21:57 +0000 Subject: [PATCH] fix the KP_ problem git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1283 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 5 +++++ src/lyxfunc.C | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index 433f0899fd..4e71f250bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-12-18 Lars Gullik Bjønnes + + * src/lyxfunc.C (processKeySym): discover the correct argument if + the action is LFUN_SELFINSERT + 2000-12-18 Dekel Tsur * src/mathed/math_cursor.C (Interpret) Suppress a debug message diff --git a/src/lyxfunc.C b/src/lyxfunc.C index ac9c22fbb9..2510ea6b43 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -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;