Avoid operating on PTT key down if it's a repeat.

pull/1406/head
Mooneer Salem 2026-06-19 14:41:32 -07:00
parent 5f7d35e436
commit a868ad19df
1 changed files with 2 additions and 1 deletions

View File

@ -1084,7 +1084,8 @@ int MainApp::FilterEvent(wxEvent& event)
!frame->m_reporterDialog->isTextMessageFieldInFocus();
bool totWarningActive = frame->m_totWarningDialog_ != nullptr && frame->m_totWarningDialog_->IsActive();
bool tuneActive = frame->m_btnTogTune->GetValue();
if (frame->m_RxRunning && !tuneActive && (mainWindowActive || totWarningActive || reporterActiveButNotUpdatingTextMessage) &&
bool keyRepeated = static_cast<wxKeyEvent&>(event).IsAutoRepeat();
if (frame->m_RxRunning && !tuneActive && !keyRepeated && (mainWindowActive || totWarningActive || reporterActiveButNotUpdatingTextMessage) &&
wxGetApp().appConfiguration.enableSpaceBarForPTT && !frame->isReceiveOnly()) {
// space bar controls tx/rx if keyer not running