mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-07 07:38:00 -04:00
Don't let global key handler usurp the ModemProperties
This commit is contained in:
parent
a1c7d0b5f8
commit
27ce295918
@ -1828,6 +1828,9 @@ int AppFrame::OnGlobalKeyDown(wxKeyEvent &event) {
|
|||||||
if (!this->IsActive()) {
|
if (!this->IsActive()) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
if (modemProps && (modemProps->HasFocus() || modemProps->isMouseInView())) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
DemodulatorInstance *demod = nullptr, *lastDemod = wxGetApp().getDemodMgr().getLastActiveDemodulator();
|
DemodulatorInstance *demod = nullptr, *lastDemod = wxGetApp().getDemodMgr().getLastActiveDemodulator();
|
||||||
int snap = wxGetApp().getFrequencySnap();
|
int snap = wxGetApp().getFrequencySnap();
|
||||||
@ -1920,6 +1923,9 @@ int AppFrame::OnGlobalKeyUp(wxKeyEvent &event) {
|
|||||||
if (!this->IsActive()) {
|
if (!this->IsActive()) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
if (modemProps && (modemProps->HasFocus() || modemProps->isMouseInView())) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
DemodulatorInstance *lastDemod = wxGetApp().getDemodMgr().getLastActiveDemodulator();
|
DemodulatorInstance *lastDemod = wxGetApp().getDemodMgr().getLastActiveDemodulator();
|
||||||
|
|
||||||
|
@ -175,5 +175,5 @@ void ModemProperties::OnMouseLeave(wxMouseEvent & /* event */) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool ModemProperties::isMouseInView() {
|
bool ModemProperties::isMouseInView() {
|
||||||
return mouseInView;
|
return mouseInView || (m_propertyGrid && m_propertyGrid->IsEditorFocused());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user