Pgup/pgdown/up/down from searchbar scrolls terminal

(cherry picked from commit 21f65230cf)
This commit is contained in:
Harald Hvaal
2013-08-22 21:47:26 +02:00
committed by Kurt Hindenburg
parent 473f48f371
commit 88ef28b4c6
4 changed files with 27 additions and 0 deletions

View File

@@ -530,6 +530,7 @@ void SessionController::setSearchBar(IncrementalSearchBar* searchBar)
// connect new search bar
_searchBar = searchBar;
if (_searchBar) {
connect(_searchBar, SIGNAL(unhandledMovementKeyPressed(QKeyEvent*)), this, SLOT(movementKeyFromSearchBarReceived(QKeyEvent*)));
connect(_searchBar, SIGNAL(closeClicked()), this, SLOT(searchClosed()));
connect(_searchBar, SIGNAL(searchFromClicked()), this, SLOT(searchFrom()));
connect(_searchBar, SIGNAL(findNextClicked()), this, SLOT(findNextInHistory()));
@@ -1554,6 +1555,12 @@ void SessionController::showDisplayContextMenu(const QPoint& position)
}
}
void SessionController::movementKeyFromSearchBarReceived(QKeyEvent *event)
{
QCoreApplication::sendEvent(_view, event);
setSearchStartToWindowCurrentLine();
}
void SessionController::sessionStateChanged(int state)
{
if (state == _previousState)