From 7540d2137a132b63e622b3e84fa317f323f7eafd Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 5 Dec 2019 11:27:17 -0500 Subject: [PATCH] For accessibility: Alt+R sets Tx4 message to RR73, Ctrl+R to RRR. --- shortcuts.txt | 2 ++ widgets/mainwindow.cpp | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/shortcuts.txt b/shortcuts.txt index 93c75585b..9461b65bb 100644 --- a/shortcuts.txt +++ b/shortcuts.txt @@ -37,6 +37,8 @@ Ctrl+O Open a .wav file Alt+O Change operator Alt+Q Log QSO + Ctrl+R Set Tx4 message to RRR + Alt+R Set Tx4 message to RR73 Alt+S Stop monitoring Alt+T Tune Alt+V Save the most recently completed *.wav file diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 6dd1f60ab..b9e9175d6 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -2059,6 +2059,16 @@ void MainWindow::keyPressEvent (QKeyEvent * e) return; } break; + case Qt::Key_R: + if(e->modifiers() & Qt::AltModifier) { + if(!m_send_RR73) on_txrb4_doubleClicked(); + return; + } + if(e->modifiers() & Qt::ControlModifier) { + if(m_send_RR73) on_txrb4_doubleClicked(); + return; + } + break; case Qt::Key_V: if(e->modifiers() & Qt::AltModifier) { m_fileToSave = m_fnameWE;