From 90e4fde88245cf401ba0253d3b6cb831f561e283 Mon Sep 17 00:00:00 2001 From: wh201906 Date: Sun, 21 Feb 2021 21:30:22 +0800 Subject: [PATCH] Fix a bug in RawCommand Tab Not all of the keys should be redirected. --- ui/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/mainwindow.cpp b/ui/mainwindow.cpp index 2af9994..773d42e 100644 --- a/ui/mainwindow.cpp +++ b/ui/mainwindow.cpp @@ -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(); } } }