1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-30 15:18:42 +02:00

Correct the handler for modifier key-down...

...So that, for instance, when you hold the mouse over a TCP button, the
highlight does not disappear and reappear if you press Ctrl and releaes it.
This commit is contained in:
Paul Licameli 2017-07-11 00:30:35 -04:00
parent e3ea42ff7e
commit a5fffbd461

View File

@ -813,7 +813,12 @@ void TrackPanel::UpdateMouseState(const wxMouseState &state)
void TrackPanel::HandleModifierKey()
{
UpdateMouseState(::wxGetMouseState());
// Get the button and key states
auto state = ::wxGetMouseState();
// Remap the position
state.SetPosition(this->ScreenToClient(state.GetPosition()));
UpdateMouseState(state);
HandleCursorForLastMouseState();
}
void TrackPanel::HandlePageUpKey()