Shift+F11/F12 should not move Rx Freq. Fixed.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7850 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2017-07-11 19:02:46 +00:00
parent 7edb7d72b8
commit 033e060895
1 changed files with 4 additions and 2 deletions

View File

@ -1710,20 +1710,22 @@ void MainWindow::keyPressEvent (QKeyEvent * e)
case Qt::Key_F11:
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);
} else{
bumpFqso(n);
}
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));
} else {
bumpFqso(n);
}
return;
case Qt::Key_E: