mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-03-25 21:59:35 -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()) {
|
||||
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();
|
||||
|
||||
|
@ -175,5 +175,5 @@ void ModemProperties::OnMouseLeave(wxMouseEvent & /* event */) {
|
||||
}
|
||||
|
||||
bool ModemProperties::isMouseInView() {
|
||||
return mouseInView;
|
||||
return mouseInView || (m_propertyGrid && m_propertyGrid->IsEditorFocused());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user