simplify code

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21231 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-10-28 04:13:40 +00:00
parent 3b7e12c27c
commit 4973ea12c0

View File

@ -123,13 +123,7 @@ void ShortcutLineEdit::appendToSequence(QKeyEvent * e)
KeySymbol sym; KeySymbol sym;
setKeySymbol(&sym, e); setKeySymbol(&sym, e);
KeyModifier mod = lyx::NoModifier; KeyModifier mod = lyx::q_key_state(e->modifiers());
if (e->modifiers() & Qt::SHIFT)
mod |= lyx::ShiftModifier;
if (e->modifiers() & Qt::CTRL)
mod |= lyx::ControlModifier;
if (e->modifiers() & Qt::ALT | e->modifiers() & Qt::META)
mod |= lyx::AltModifier;
keysequence_.addkey(sym, mod, lyx::NoModifier); keysequence_.addkey(sym, mod, lyx::NoModifier);
} }