Handle Ctrl+Tab/Ctrl+Shift+Tab in translate line as tabs switch

This commit is contained in:
Abs62 2022-07-13 17:31:57 +03:00
parent 21c94bb7dd
commit 896bd350be

View file

@ -2541,6 +2541,11 @@ bool MainWindow::eventFilter( QObject * obj, QEvent * ev )
ctrlTabPressed();
return true;
}
else if( obj == translateLine )
{
QApplication::sendEvent( ui.tabWidget, ev );
return true;
}
return false;
}
}
@ -2560,6 +2565,12 @@ bool MainWindow::eventFilter( QObject * obj, QEvent * ev )
return true;
}
}
if( keyEvent->matches( QKeySequence::PreviousChild ) ) // Handle only Ctrl+Shist+Tab because Ctrl+Tab was already handled before
{
QApplication::sendEvent( ui.tabWidget, ev );
return true;
}
}
if ( ev->type() == QEvent::FocusIn ) {