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

Piano roll: reset editing mode when lost focus #4393

Merged
merged 2 commits into from
Jun 5, 2018

Conversation

PhysSong
Copy link
Member

@PhysSong PhysSong commented Jun 3, 2018

Set m_editMode back to m_ctrlMode as if the Control key is released in PianoRoll::focusOutEvent. Fixes #4390, and partially #3833.
The handler is also called when the editor is closed(in Qt, hiding focused widget generates focus out event). If this works, similar patch can be applied for song editor in master branch(current fix #3796 is incomplete, it doesn't work when switching window).

@PhysSong
Copy link
Member Author

PhysSong commented Jun 3, 2018

Forgot to add some changes. I'll add it soon.

@PhysSong
Copy link
Member Author

PhysSong commented Jun 3, 2018

Now it changes another behavior. If you press control key when you're in draw mode, select erase mode, and then release control key:

  • Current: Erase button selected, but actual mode sticks to draw
  • This PR: Erase button selected, and actual mode is changed to erase, too.

@PhysSong
Copy link
Member Author

PhysSong commented Jun 4, 2018

I'll merge this in 24 hours if no issues are reported.

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