minor tidy

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4418 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-06-18 17:22:17 +00:00
parent f1c24d1009
commit 4405aec901
2 changed files with 6 additions and 9 deletions

View File

@ -1,3 +1,7 @@
2002-06-18 John Levon <moz@compsoc.man.ac.uk>
* lyxfunc.C: tidy up a little
2002-06-16 <alstrup@diku.dk> 2002-06-16 <alstrup@diku.dk>
* BufferView_pimpl.C (Pimpl): Use WorkAreaFactory. * BufferView_pimpl.C (Pimpl): Use WorkAreaFactory.

View File

@ -239,7 +239,6 @@ void LyXFunc::processKeySym(LyXKeySymPtr keysym,
return; return;
} }
// This code snippet makes lyx ignore modifier keys.
if (keysym->isModifier()) { if (keysym->isModifier()) {
return; return;
} }
@ -257,12 +256,6 @@ void LyXFunc::processKeySym(LyXKeySymPtr keysym,
// Note how the meta_fake Mod1 bit is OR-ed in and reset afterwards. // Note how the meta_fake Mod1 bit is OR-ed in and reset afterwards.
// Mostly, meta_fake_bit = key_modifier::none. RVDK_PATCH_5. // Mostly, meta_fake_bit = key_modifier::none. RVDK_PATCH_5.
if ((action != LFUN_CANCEL) && (action != LFUN_META_FAKE)) { if ((action != LFUN_CANCEL) && (action != LFUN_META_FAKE)) {
#if 0
if (lyxerr.debugging(Debug::KEY)) {
lyxerr << "meta_fake_bit is ["
<< meta_fake_bit << "]" << endl;
}
#endif
// remove Caps Lock and Mod2 as a modifiers // remove Caps Lock and Mod2 as a modifiers
action = keyseq.addkey(keysym, (state | meta_fake_bit)); action = keyseq.addkey(keysym, (state | meta_fake_bit));
if (lyxerr.debugging(Debug::KEY)) { if (lyxerr.debugging(Debug::KEY)) {
@ -320,9 +313,9 @@ void LyXFunc::processKeySym(LyXKeySymPtr keysym,
dispatch(LFUN_SELFINSERT, argument); dispatch(LFUN_SELFINSERT, argument);
lyxerr[Debug::KEY] << "SelfInsert arg[`" lyxerr[Debug::KEY] << "SelfInsert arg[`"
<< argument << "']" << endl; << argument << "']" << endl;
} } else {
else
verboseDispatch(action, false); verboseDispatch(action, false);
}
} }