Absorb all input events to avoid unexpected actions from hidden windows
This commit is contained in:
parent
bd1cfcb444
commit
ae5fb4c15f
@ -162,7 +162,7 @@ bool InputDevice::handleKeyEvent(QEvent* event, QKeyEvent* key)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto& buttonCodes = this->getSupportedButtonCodes();
|
const auto& buttonCodes = this->getSupportedButtonCodes();
|
||||||
@ -181,7 +181,7 @@ bool InputDevice::handleTouchEvent(QEvent* event)
|
|||||||
{
|
{
|
||||||
if(!configuration_->getTouchscreenEnabled())
|
if(!configuration_->getTouchscreenEnabled())
|
||||||
{
|
{
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
aasdk::proto::enums::TouchAction::Enum type;
|
aasdk::proto::enums::TouchAction::Enum type;
|
||||||
@ -198,7 +198,7 @@ bool InputDevice::handleTouchEvent(QEvent* event)
|
|||||||
type = aasdk::proto::enums::TouchAction::DRAG;
|
type = aasdk::proto::enums::TouchAction::DRAG;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return false;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
QMouseEvent* mouse = static_cast<QMouseEvent*>(event);
|
QMouseEvent* mouse = static_cast<QMouseEvent*>(event);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user