mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-14 16:46:28 +01:00
Menu shortcut hiding has been removed
It had been causing problems in Unity for a while now and they were missing on OSX as well in wx3. So, the old menu Open/Close method of hiding has been removed and replaced with an event filter/monitor which looks for wxEVT_CHAR_HOOK events to pass key events to the handler that has the keyboard captured.
This commit is contained in:
@@ -82,13 +82,12 @@ void MixerTrackSlider::OnMouseEvent(wxMouseEvent &event)
|
||||
|
||||
void MixerTrackSlider::OnFocus(wxFocusEvent &event)
|
||||
{
|
||||
wxCommandEvent e(EVT_CAPTURE_KEYBOARD);
|
||||
|
||||
if (event.GetEventType() == wxEVT_KILL_FOCUS) {
|
||||
e.SetEventType(EVT_RELEASE_KEYBOARD);
|
||||
AudacityProject::ReleaseKeyboard(this);
|
||||
}
|
||||
else {
|
||||
AudacityProject::CaptureKeyboard(this);
|
||||
}
|
||||
e.SetEventObject(this);
|
||||
GetParent()->GetEventHandler()->ProcessEvent(e);
|
||||
|
||||
Refresh(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user