mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
ShortcutOverride again
Re: fix for #9218 (not #10119) Now it matches the example given in the docs. This time tested on qt4.
This commit is contained in:
parent
8e3a890b2a
commit
0be52d3710
@ -724,7 +724,7 @@ bool GuiWorkArea::event(QEvent * e)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
case QEvent::ShortcutOverride: {
|
case QEvent::KeyPress: {
|
||||||
// We catch this event in order to catch the Tab or Shift+Tab key press
|
// We catch this event in order to catch the Tab or Shift+Tab key press
|
||||||
// which are otherwise reserved to focus switching between controls
|
// which are otherwise reserved to focus switching between controls
|
||||||
// within a dialog.
|
// within a dialog.
|
||||||
@ -733,7 +733,7 @@ bool GuiWorkArea::event(QEvent * e)
|
|||||||
|| (ke->key() == Qt::Key_Backtab && (
|
|| (ke->key() == Qt::Key_Backtab && (
|
||||||
ke->modifiers() == Qt::ShiftModifier
|
ke->modifiers() == Qt::ShiftModifier
|
||||||
|| ke->modifiers() == Qt::NoModifier))) {
|
|| ke->modifiers() == Qt::NoModifier))) {
|
||||||
e->accept();
|
keyPressEvent(ke);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return QAbstractScrollArea::event(e);
|
return QAbstractScrollArea::event(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user