mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-13 03:08:57 -04:00
Don't let global key handler usurp the ModemProperties
This commit is contained in:
@@ -1828,6 +1828,9 @@ int AppFrame::OnGlobalKeyDown(wxKeyEvent &event) {
|
||||
if (!this->IsActive()) {
|
||||
return -1;
|
||||
}
|
||||
if (modemProps && (modemProps->HasFocus() || modemProps->isMouseInView())) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
DemodulatorInstance *demod = nullptr, *lastDemod = wxGetApp().getDemodMgr().getLastActiveDemodulator();
|
||||
int snap = wxGetApp().getFrequencySnap();
|
||||
@@ -1920,6 +1923,9 @@ int AppFrame::OnGlobalKeyUp(wxKeyEvent &event) {
|
||||
if (!this->IsActive()) {
|
||||
return -1;
|
||||
}
|
||||
if (modemProps && (modemProps->HasFocus() || modemProps->isMouseInView())) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
DemodulatorInstance *lastDemod = wxGetApp().getDemodMgr().getLastActiveDemodulator();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user