You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Rviz2, switching between tools with shortcuts works normally.
However, pressing ESC to switch back to the default tool doesn't work.
This error also happens, when I try to process keyPressEvent in a custom panel widget. When focused, normal keys work, but the ESC key is not captured. However, if I hold down the mouse button and press ESC, it is captured (using a custom eventFilter on QApplication.
I'll look into it when I have time, which I'm not sure when it'll be.
Keep you updated!
Update: The line new QShortcut(Qt::Key_Escape, this, SLOT(exitFullScreen())); is the culprit, when removed, the ESC key correctly switches selected tool back to default one.
In Rviz2, switching between tools with shortcuts works normally.
However, pressing ESC to switch back to the default tool doesn't work.
This error also happens, when I try to process keyPressEvent in a custom panel widget. When focused, normal keys work, but the ESC key is not captured. However, if I hold down the mouse button and press ESC, it is captured (using a custom eventFilter on QApplication.
It looks like ESC key is being handled somewhere else. The only thing I could find is the "exit fullscreen" shortcut in visualization_frame.cpp
new QShortcut(Qt::Key_Escape, this, SLOT(exitFullScreen()));
Could this line be interrupting other ESC key presses?
My version of rviz2:
ros-humble-rviz2/jammy,now 11.2.9-1jammy.20231207.081716 amd64
The text was updated successfully, but these errors were encountered: