mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
simplify code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21231 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3b7e12c27c
commit
4973ea12c0
@ -123,13 +123,7 @@ void ShortcutLineEdit::appendToSequence(QKeyEvent * e)
|
||||
KeySymbol sym;
|
||||
setKeySymbol(&sym, e);
|
||||
|
||||
KeyModifier mod = lyx::NoModifier;
|
||||
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;
|
||||
KeyModifier mod = lyx::q_key_state(e->modifiers());
|
||||
|
||||
keysequence_.addkey(sym, mod, lyx::NoModifier);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user