-
-
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
Play/Pause using keyboards shortcuts fails after loading a track due to a focus change introduced in v2.4.0 #13160
Comments
I can not reproduce this. Dragging a track from the library (track view has keyboard focus) to a waveform or overview widget does not steal focus from the library. Please describe step by step how focus changes, and which waveform type you use (though that should not affect the overview waveform). |
sorry it might have been unclear in my bug report that this happens when you drag a file from outside mixxx into mixxx. here is a quick video demonstrating the issue: mixxx_focus_issue.webm I hope this explains better the issue. |
Oh okay, understood (without watching the video). I'll take a look. |
The searchbar gets focus only if no widget had focus before (e.g. when pressing Tab after start) Btw I can't activate the main window with D'n'D, I need to actively activate it with Alt+Tab or by hovering the Mixxx iccon in my taskbar / dock. I see this has changed with 2.4, so I'll take a look if this can be adjusted somehow. |
I am not familiar with the technical terms you use here, so allow me to formulate with my own words: my expectation is that after loading a track into a deck the keyboard shortcut to play/pause will work, regardless of how the track was loaded into the deck. d'n'd alone does not activate mixxx window, when your desktop is set to click to focus. It does when your desktop is set to "focus follow mouse". in "click to focus" mode, you can drag and drop and activate mixxx at the same time. not sure if those use case change anything to what you already said, I suppose they don't, but it's worth mentioning them for testing a solution actually works. I assume the focus catching widgets you mention are the parts of the UI that get a colored outline when they have focus. the sections of the library: search, browse and track list. After a round of testing, I can confirm your findings. when the mixxx window is activated and none of those widgets had focus when the mixxx window was deactivated, the focus will be applied to search if it exists, and the browse section if it does not. during my further testing I was able to trigger this issue simply by interacting with mixxx, it happens every time the main window gets focus back from anywhere:
you can replace step 3 and 4 with or or or or or or |
My observation regarding activation of the main window was just that, an observation, and is indeed a consequence of desktop config. Just ignore.
I was referingto the searchbar (or some other lineedit like the beat size spinboxes). |
I think this is the culprit, caused by the new waveform implementation.
I'll take a look. |
FWIW Spinnies can also be focused since the (waveform-related) refactoring. |
thank you for fixing this so fast. so if I understand what you said, if I click the spinnies instead of the waveform the focus should not jump to search bar and could be used as a workaround until the next release of mixxx ? |
I'm pretty sure this has been fixed by #13174 so I'm closing this now. |
Bug Description
using the keyboard shortcuts to play/pause a track start a search instead of playing/pausing the track.
To replicate the issue, load a track into a deck by drag'n'drop to either the waveform display or waveform overview, then use the shortcut keys to play/pause. instead of the track playing/pausing, the characters are added to the search box.
I have to click into the waveform display for the shortcuts to work and for some reason every time I alt tab back into mixxx the focus returns into the search box.
After loading a track into a deck I expect the shortcuts to play/pause and not search for another track. This was the behaviour in previous mixxx version.
Version
2.4.0
OS
Linux (manjaro)
The text was updated successfully, but these errors were encountered: