Skip to content

Commit

Permalink
Reverted focus change.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Mar 8, 2024
1 parent a6932c0 commit 086ba3e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mrv2/lib/mrvGL/mrvTimelineWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,16 @@ namespace mrv
int TimelineWidget::enterEvent()
{
TLRENDER_P();

bool takeFocus = true;
Fl_Widget* focusWidget = Fl::focus();
TimelineClass* c = p.ui->uiTimeWindow;
if (focusWidget == c->uiFrame || focusWidget == c->uiStartFrame ||
focusWidget == c->uiEndFrame)
takeFocus = false;
// if (Fl::focus() == nullptr)
if (takeFocus)
take_focus();
p.timelineWindow->cursorEnter(true);
return 1;
}
Expand Down

0 comments on commit 086ba3e

Please sign in to comment.