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:
parent
e3ea42ff7e
commit
a5fffbd461
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user