mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge 37e49cc1b5 into merged_master (Bitcoin PR bitcoin-core/gui#580)
This commit is contained in:
commit
66c8ae2b78
1 changed files with 5 additions and 6 deletions
|
|
@ -618,17 +618,16 @@ bool RPCConsole::eventFilter(QObject* obj, QEvent *event)
|
|||
case Qt::Key_Down: if(obj == ui->lineEdit) { browseHistory(1); return true; } break;
|
||||
case Qt::Key_PageUp: /* pass paging keys to messages widget */
|
||||
case Qt::Key_PageDown:
|
||||
if(obj == ui->lineEdit)
|
||||
{
|
||||
QApplication::postEvent(ui->messagesWidget, new QKeyEvent(*keyevt));
|
||||
if (obj == ui->lineEdit) {
|
||||
QApplication::sendEvent(ui->messagesWidget, keyevt);
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case Qt::Key_Return:
|
||||
case Qt::Key_Enter:
|
||||
// forward these events to lineEdit
|
||||
if(obj == autoCompleter->popup()) {
|
||||
QApplication::postEvent(ui->lineEdit, new QKeyEvent(*keyevt));
|
||||
if (obj == autoCompleter->popup()) {
|
||||
QApplication::sendEvent(ui->lineEdit, keyevt);
|
||||
autoCompleter->popup()->hide();
|
||||
return true;
|
||||
}
|
||||
|
|
@ -642,7 +641,7 @@ bool RPCConsole::eventFilter(QObject* obj, QEvent *event)
|
|||
((mod & Qt::ShiftModifier) && key == Qt::Key_Insert)))
|
||||
{
|
||||
ui->lineEdit->setFocus();
|
||||
QApplication::postEvent(ui->lineEdit, new QKeyEvent(*keyevt));
|
||||
QApplication::sendEvent(ui->lineEdit, keyevt);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue