This commit is contained in:
parent
c95e90b925
commit
acc90fd03c
@ -184,6 +184,15 @@ bool EventHandler::OnEvent (const SEvent &event)
|
|||||||
// FIXME? it may be a bit unclean that all input events go trough
|
// FIXME? it may be a bit unclean that all input events go trough
|
||||||
// the gui module
|
// the gui module
|
||||||
const EventPropagation blockPropagation = input_manager->input(event);
|
const EventPropagation blockPropagation = input_manager->input(event);
|
||||||
|
|
||||||
|
if (event.EventType == EET_KEY_INPUT_EVENT &&
|
||||||
|
event.KeyInput.Key == irr::KEY_TAB)
|
||||||
|
{
|
||||||
|
// block all tab events, if we let them go, irrlicht will try
|
||||||
|
// to apply its own focus code
|
||||||
|
return true; // EVENT_BLOCK
|
||||||
|
}
|
||||||
|
|
||||||
return blockPropagation == EVENT_BLOCK;
|
return blockPropagation == EVENT_BLOCK;
|
||||||
}
|
}
|
||||||
else if (event.EventType == EET_LOG_TEXT_EVENT)
|
else if (event.EventType == EET_LOG_TEXT_EVENT)
|
||||||
|
Loading…
Reference in New Issue
Block a user