Skip to content

Commit

Permalink
ItemsHolder: don't propagate Char events to other widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Sep 27, 2022
1 parent a87210a commit ebee891
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions controls/ItemsHolder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,25 +142,6 @@ void CMenuItemsHolder::Char( int ch )

if( item && item->IsVisible() && !(item->iFlags & (QMF_GRAYED|QMF_INACTIVE)) )
item->Char( ch );

FOR_EACH_VEC( m_pItems, i )
{
item = m_pItems[i];

if( !item )
continue;

if( item == ItemAtCursor() )
continue;

if( item->iFlags & (QMF_GRAYED|QMF_INACTIVE) )
continue;

if( !item->IsVisible() )
continue;

item->Char( ch );
}
}

bool CMenuItemsHolder::MouseMove( int x, int y )
Expand Down

0 comments on commit ebee891

Please sign in to comment.