mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-17 13:01:41 +00:00
Don't try to handle the right mouse button actions in editor mode.
This commit is contained in:
parent
27c6894514
commit
9d8a8b7fe4
1 changed files with 8 additions and 0 deletions
|
@ -2302,6 +2302,14 @@ namespace NLGUI
|
|||
eventDesc.setX( _Pointer->getX() );
|
||||
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() )
|
||||
{
|
||||
// First thing to do : Capture handling
|
||||
|
|
Loading…
Reference in a new issue