We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
int PickerTool::processKeyEvent(QKeyEvent* event, rviz::RenderPanel* panel) { // bool processed = false; if (event->type() == QEvent::KeyPress && event->key() == Qt::Key_Shift ) { // shift event->type() == QEvent::KeyPress // if (event->isAutoRepeat()){ // event->ignore(); shift_pressing_ = true; // processed == true; } else if (event->type() == QEvent::KeyRelease && event->key() == Qt::Key_Shift) { shift_pressing_ = false; // event->accept(); } cout << "shift_pressing: " << shift_pressing_ <<endl; return 0; }
The text was updated successfully, but these errors were encountered:
Thank you for report, could you create PR for this?
Sorry, something went wrong.
I don't know how to create PR, but I can send the complete code to your email, OK?
Because my knowledge of the code was borrowed from the code
So, can you help me?
No branches or pull requests
int PickerTool::processKeyEvent(QKeyEvent* event, rviz::RenderPanel* panel)
{
// bool processed = false;
if (event->type() == QEvent::KeyPress && event->key() == Qt::Key_Shift ) { // shift event->type() == QEvent::KeyPress
// if (event->isAutoRepeat()){
// event->ignore();
shift_pressing_ = true;
// processed == true;
}
else if (event->type() == QEvent::KeyRelease && event->key() == Qt::Key_Shift) {
shift_pressing_ = false;
// event->accept();
}
cout << "shift_pressing: " << shift_pressing_ <<endl;
return 0;
}
The text was updated successfully, but these errors were encountered: