mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-16 06:03:49 +01:00
CellularPanel saves and restores focus for each click-drag-release...
... while the project makes note of which window has temporarily given up the focus; and TrackPanel can detect that, so that the yellow border of the focused track is still drawn while the panel "lends" the focus. Why do all this? So that, when the ruler is another CellularPanel, ESC key will work to abort drags in the ruler, but TrackPanel appearance won't change during the drags.
This commit is contained in:
@@ -1270,7 +1270,7 @@ void TrackPanel::DrawEverythingElse(TrackPanelDrawingContext &context,
|
||||
// if (GetFocusedTrack() != NULL) {
|
||||
// the highlight was reportedly drawn even when something else
|
||||
// was the focus and no highlight should be drawn. -RBD
|
||||
if (GetFocusedTrack() != NULL && wxWindow::FindFocus() == this) {
|
||||
if (GetFocusedTrack() != NULL && GetProject()->IsFocused( this )) {
|
||||
HighlightFocusedTrack(dc, focusRect);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user