Skip to content
New issue

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

Esc shortcut to leave fullscreen prevents canceling tools from working #1257

Closed
ipa-fez opened this issue Jun 11, 2018 · 4 comments
Closed

Comments

@ipa-fez
Copy link
Contributor

ipa-fez commented Jun 11, 2018

new QShortcut(Qt::Key_Escape, this, SLOT( exitFullScreen() ));

This QShortcut seems to prevent esc key-events from firing which means

if( event->key() == Qt::Key_Escape )

never gets called, meaning that actions such as send goal or initial pose can no longer be aborted with esc.

@rhaschke
Copy link
Contributor

I guess, this was fixed via your #1256? If not, reopen this issue and provide a more detailed error description.

@ipa-fez
Copy link
Contributor Author

ipa-fez commented Sep 2, 2019

This isn't fixed by #1256 .

Here's what's happening:
Old behaviour:

  • Press g to start "send goal" tool
  • click and hold left mouse button to start the send goal action
  • Press ESC to cancel the action without sending a goal

This no longer works now since the ESC key was bound to "exit full screen" in addition to "cancel current action" and the "exit fullscreen" behaviour seems to prevent the key event from propagating to the tools.

A workaround to cancel started actions right now is to press "I" to switch to the interaction tool which will also cancel a started "send goal" action without sending the goal.

Possible solutions would be to:

  • Remove the ESC shortcut to leave fullscreen (leaving F11 as a toggle)
  • Making sure the ESC key propagates to the tools so when rviz is not fullscreened, actions are canceled and when rviz is fullscreened, either exit fullscreen or both exit fullscreen and cancel any active actions.

@rhaschke
Copy link
Contributor

rhaschke commented Sep 2, 2019

Thanks for describing the issue in more detail. When do you think the old behavior was working?
According to the commit log, the ESC shortcut to leave fullscreen was introduced together with fullscreen mode in #1017. So I guess, you refer to a version w/o the fullscreen feature, i.e. before May 2017?

@ipa-fez
Copy link
Contributor Author

ipa-fez commented Sep 3, 2019

Exactly, when the version with fullscreen support was released, the bug was introduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants