mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 07:42:02 +00:00
#5970 more exact modifier check for Tab keys filter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35571 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0dc22fb82f
commit
d87cdfa5e1
@ -654,11 +654,14 @@ bool GuiWorkArea::event(QEvent * e)
|
||||
// which are otherwise reserved to focus switching between controls
|
||||
// within a dialog.
|
||||
QKeyEvent * ke = static_cast<QKeyEvent*>(e);
|
||||
if ((ke->key() != Qt::Key_Tab && ke->key() != Qt::Key_Backtab)
|
||||
|| ke->modifiers() & Qt::ControlModifier)
|
||||
return QAbstractScrollArea::event(e);
|
||||
keyPressEvent(ke);
|
||||
return true;
|
||||
if ((ke->key() == Qt::Key_Tab && ke->modifiers() == Qt::NoModifier)
|
||||
|| (ke->key() == Qt::Key_Backtab && (
|
||||
ke->modifiers() == Qt::ShiftModifier
|
||||
|| ke->modifiers() == Qt::NoModifier))) {
|
||||
keyPressEvent(ke);
|
||||
return true;
|
||||
}
|
||||
return QAbstractScrollArea::event(e);
|
||||
}
|
||||
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user