Open lidongxu111 opened 2 years ago
Thank you for report, could you create PR for this?
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?
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(); shiftpressing = true; // processed == true; } else if (event->type() == QEvent::KeyRelease && event->key() == Qt::Key_Shift) { shiftpressing = false; // event->accept(); } cout << "shift_pressing: " << shiftpressing <<endl; return 0; }