fix the KP_ problem

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1283 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2000-12-18 14:21:57 +00:00
parent 4d9a456303
commit b4902ff0a3
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -270,8 +270,18 @@ 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;
Dispatch(action, argument);