Fix a bug in RawCommand Tab

Not all of the keys should be redirected.
This commit is contained in:
wh201906 2021-02-21 21:30:22 +08:00
parent 705c8de54c
commit 90e4fde882

View file

@ -273,7 +273,8 @@ void MainWindow::on_Raw_keyPressed(QObject* obj_addr, QEvent& event)
}
else if(obj_addr == ui->Raw_outputEdit)
{
ui->Raw_CMDEdit->setFocus();
if(keyEvent.key() == Qt::Key_Up || keyEvent.key() == Qt::Key_Down)
ui->Raw_CMDEdit->setFocus();
}
}
}