-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
keep the library focused when any deck controls or the overview are clicked #2307
Conversation
this allows to keep the library focused for keyboard interaction when any deck controls or the overview are clicked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you this works like a charm, there is only a code style issue.
@@ -26,4 +26,5 @@ void WEffectButtonParameter::setup(const QDomNode& node, const SkinContext& cont | |||
SKIN_WARNING(node, context) | |||
<< "EffectButtonParameter node could not attach to effect parameter"; | |||
} | |||
this->setFocusPolicy(Qt::NoFocus); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this-> is redundant and should be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because this is a wpushbutton actually. label..
will look into this again and fix it
I'm done. For the sake of completeness it would be nice to disallow click focus in the scrolling waveforms, but I don't find the right spot to fix it there, also I don't really want to mess with the waveforms ;) |
Doesn't this make everything aside from the library inaccessible to screen readers? |
AFAIK there wouldn't be a drawback for screenreaders. just asked @DJ-Ray about this https://mixxx.zulipchat.com/#narrow/stream/109171-development/topic/Optimzation.20for.20blind.20users/near/178858554 |
Oh, I just see the redudnat "this->" is still there. Please remove it and this is geady for merge. |
Done. |
LGTM, Thank you. |
trying to fix https://bugs.launchpad.net/mixxx/+bug/1259040
"Clicking on deck controls affects library keyboard focus"
I added 'setFocusPolicy(Qt::NoFocus);' to the setup slot of most interactive skin widgets, like it worked for the library Preview button in #2264 .
This allows to keep the library focused for keyboard interaction when any deck controls or the overview are clicked.
I didn't apply the fix to the effect selector or spinboxes because I don't overlook the consequences and IMO there's no point to keep the library focused when interacting with those widgets.
This is a quite naive attempt but it works for buttons, sliders, knobs ...
It's so simple that I just can't believe there are no side effects. What can could wrong?
Is there a better place to set the focus policy?
Can it safely be set in wbasewidget ?
New behaviour: