Absorb all input events to avoid unexpected actions from hidden windows

pull/10/head
michal.szwaj 2018-02-13 16:01:28 +01:00
parent bd1cfcb444
commit ae5fb4c15f
1 changed files with 3 additions and 3 deletions

View File

@ -162,7 +162,7 @@ bool InputDevice::handleKeyEvent(QEvent* event, QKeyEvent* key)
break;
default:
return false;
return true;
}
const auto& buttonCodes = this->getSupportedButtonCodes();
@ -181,7 +181,7 @@ bool InputDevice::handleTouchEvent(QEvent* event)
{
if(!configuration_->getTouchscreenEnabled())
{
return false;
return true;
}
aasdk::proto::enums::TouchAction::Enum type;
@ -198,7 +198,7 @@ bool InputDevice::handleTouchEvent(QEvent* event)
type = aasdk::proto::enums::TouchAction::DRAG;
break;
default:
return false;
return true;
};
QMouseEvent* mouse = static_cast<QMouseEvent*>(event);