diff --git a/mainwindow.cpp b/mainwindow.cpp index 16ca5a9d1..3d7f31d58 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1711,11 +1711,20 @@ void MainWindow::keyPressEvent (QKeyEvent * e) n=11; if(e->modifiers() & Qt::ControlModifier) n+=100; bumpFqso(n); + if(e->modifiers() & Qt::ShiftModifier) { + int f=ui->TxFreqSpinBox->value()/50; + if((ui->TxFreqSpinBox->value() % 50) == 0) f=f-1; + ui->TxFreqSpinBox->setValue(50*f); + } return; case Qt::Key_F12: n=12; if(e->modifiers() & Qt::ControlModifier) n+=100; bumpFqso(n); + if(e->modifiers() & Qt::ShiftModifier) { + int f=ui->TxFreqSpinBox->value()/50; + ui->TxFreqSpinBox->setValue(50*(f+1)); + } return; case Qt::Key_E: if(e->modifiers() & Qt::ShiftModifier) { @@ -1771,28 +1780,6 @@ void MainWindow::keyPressEvent (QKeyEvent * e) return; } break; - case Qt::Key_Plus: - if(e->modifiers() & Qt::ControlModifier) { - int f=ui->TxFreqSpinBox->value()/50; - ui->TxFreqSpinBox->setValue(50*(f+1)); - return; - } - break; - case Qt::Key_Equal: - if(e->modifiers() & Qt::ControlModifier) { - int f=ui->TxFreqSpinBox->value()/50; - ui->TxFreqSpinBox->setValue(50*(f+1)); - return; - } - break; - case Qt::Key_Minus: - if(e->modifiers() & Qt::ControlModifier) { - int f=ui->TxFreqSpinBox->value()/50; - if((ui->TxFreqSpinBox->value() % 50) == 0) f=f-1; - ui->TxFreqSpinBox->setValue(50*f); - return; - } - break; } QMainWindow::keyPressEvent (e); diff --git a/shortcuts.txt b/shortcuts.txt index 592166dac..2b67dfd39 100644 --- a/shortcuts.txt +++ b/shortcuts.txt @@ -11,8 +11,10 @@ F7 Display Message Averaging window F11 Move Rx frequency down 1 Hz Ctrl+F11 Move Rx and Tx frequencies down 1 Hz + Shift+F11 Move Tx frequency down 50 Hz (rounded) F12 Move Rx frequency up 1 Hz Ctrl+F12 Move Rx and Tx frequencies up 1 Hz + Shift+F12 Move Tx frequency up 50 Hz (rounded) Alt+1-6 Set now transmission to this number on Tab 1 Ctl+1-6 Set next transmission to this number on Tab 1 Alt+D Decode again at QSO frequency