Don't try to handle the right mouse button actions in editor mode.

--HG--
branch : dfighter-tools
hg/feature/light_cycle
dfighter1985 10 years ago
parent 64571abd47
commit ad9e9839fb

@ -2302,6 +2302,14 @@ namespace NLGUI
eventDesc.setX( _Pointer->getX() ); eventDesc.setX( _Pointer->getX() );
eventDesc.setY( _Pointer->getY() ); eventDesc.setY( _Pointer->getY() );
if( CInterfaceElement::getEditorMode() )
{
// Let's pretend we've handled the event... or actually we have!
if( ( eventDesc.getEventTypeExtended() == CEventDescriptorMouse::mouserightdown ) ||
( eventDesc.getEventTypeExtended() == CEventDescriptorMouse::mouserightup ) )
return true;
}
if( isMouseHandlingEnabled() ) if( isMouseHandlingEnabled() )
{ {
// First thing to do : Capture handling // First thing to do : Capture handling

Loading…
Cancel
Save