Skip to content

Commit

Permalink
Only tab down the completer when the popup is visible.
Browse files Browse the repository at this point in the history
Issue: 79
  • Loading branch information
icefox committed Oct 2, 2009
1 parent 461e5ad commit ad1852e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/history/historycompleter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ QStringList HistoryCompleter::splitPath(const QString &path) const

bool HistoryCompleter::eventFilter(QObject *obj, QEvent *event)
{
if (event->type() == QEvent::KeyPress) {
if (event->type() == QEvent::KeyPress && popup()->isVisible()) {
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
if (keyEvent->key() == Qt::Key_Tab) {
QKeyEvent *newEvent = new QKeyEvent(QEvent::KeyPress,
Expand Down

0 comments on commit ad1852e

Please sign in to comment.