mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
BrowserWindow: Don't resend Ctrl+Tab key press events
If the event is not accepted by TabWidget, it will be sent back to BrowserWindow and end up in infinite recursion.
This commit is contained in:
parent
929851095a
commit
49f48bdd1a
@ -1337,13 +1337,13 @@ void BrowserWindow::keyPressEvent(QKeyEvent* event)
|
|||||||
|
|
||||||
case Qt::Key_Tab:
|
case Qt::Key_Tab:
|
||||||
if (event->modifiers() == Qt::ControlModifier) {
|
if (event->modifiers() == Qt::ControlModifier) {
|
||||||
QApplication::sendEvent(m_tabWidget, event);
|
static_cast<QObject*>(m_tabWidget)->event(event);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Qt::Key_Backtab:
|
case Qt::Key_Backtab:
|
||||||
if (event->modifiers() == (Qt::ControlModifier + Qt::ShiftModifier)) {
|
if (event->modifiers() == (Qt::ControlModifier + Qt::ShiftModifier)) {
|
||||||
QApplication::sendEvent(m_tabWidget, event);
|
static_cast<QObject*>(m_tabWidget)->event(event);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user