Skip to content

Commit

Permalink
[GUI] Recognize key event for clearing console
Browse files Browse the repository at this point in the history
Adjust the settingsconsolewidget event filter to explicitely recognize
the key combo for clearing the console.

Github-Pull: #1744
Rebased-From: ff9e3d8
  • Loading branch information
Fuzzbawls committed Jul 22, 2020
1 parent 77880e0 commit 5d22583
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qt/pivx/settings/settingsconsolewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ bool SettingsConsoleWidget::eventFilter(QObject* obj, QEvent* event)
QApplication::postEvent(ui->lineEdit, new QKeyEvent(*keyevt));
return true;
}
if (mod == Qt::ControlModifier && key == Qt::Key_L)
clear(false);
}
}
return QWidget::eventFilter(obj, event);
Expand Down

0 comments on commit 5d22583

Please sign in to comment.