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

add option to disable keyboard focus being set on mouse move #1174

Merged

Conversation

simonschmeisser
Copy link
Contributor

currently all mouse events get forwarded to onRenderWindowMouseEvents,
there keyboard focus is requested (setFocus) unconditionally. This commit
adds a new property "focus_on_mouse_move_" that enables setting keyboard
focus on mouse move events. Setting focus on click or wheel is handled by
QObject::setFocusPolicy

Subclasses/Users of rvis::RenderPanel can disable either setting focus on
mouse move by using the boolean property and disable keyboard focus on click,
on wheel or totally via setFocusPolicy

currently all mouse events get forwarded to onRenderWindowMouseEvents,
there keyboard focus is requested (setFocus) unconditionally. This commit
adds a new property "focus_on_mouse_move_" that enables setting keyboard
focus on mouse move events. Setting focus on click or wheel is handled by
QObject::setFocusPolicy

Subclasses/Users of rvis::RenderPanel can disable either setting focus on
mouse move by using the boolean property and disable keyboard focus on click,
on wheel or totally via setFocusPolicy
@simonschmeisser
Copy link
Contributor Author

ping?

@dhood
Copy link
Contributor

dhood commented Dec 11, 2017

thanks for the PR, we'll take a look at it as soon as possible

@dhood dhood added this to the first melodic release milestone Apr 6, 2018
@wjwwood wjwwood added the review label May 10, 2018
@wjwwood wjwwood changed the base branch from kinetic-devel to melodic-devel May 10, 2018 23:24
@wjwwood
Copy link
Member

wjwwood commented May 10, 2018

Since this is an ABI breaking change I had to target to the melodic-devel branch instead.

@ghost ghost assigned wjwwood May 10, 2018
@ghost ghost added the in progress label May 10, 2018
Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks reasonable to me.

@wjwwood
Copy link
Member

wjwwood commented May 10, 2018

@simonschmeisser if you want/need this in kinetic-devel then we'll have to find a way to do it ABI compatible. Feel free to start a discussion about that if you want after I merge this. Thanks for pr!

@wjwwood wjwwood merged commit b4e4820 into ros-visualization:melodic-devel May 10, 2018
@ghost ghost removed the review label May 10, 2018
@simonschmeisser
Copy link
Contributor Author

@wjwwood thanks for merging it to melodic. I'm fine that way. We will upgrade asap anyway and have a workaround for the time being

@simonschmeisser simonschmeisser deleted the no_focus_grabbing branch May 11, 2018 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants