Skip to content

Piano roll: reset editing mode when lost focus - #4393

Merged
PhysSong merged 2 commits into
LMMS:stable-1.2from
PhysSong:pianofocus
Jun 5, 2018
Merged

Piano roll: reset editing mode when lost focus#4393
PhysSong merged 2 commits into
LMMS:stable-1.2from
PhysSong:pianofocus

Conversation

@PhysSong

@PhysSong PhysSong commented Jun 3, 2018

Copy link
Copy Markdown
Member

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

PhysSong commented Jun 3, 2018

Copy link
Copy Markdown
Member Author

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

@PhysSong

PhysSong commented Jun 3, 2018

Copy link
Copy Markdown
Member Author

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

PhysSong commented Jun 4, 2018

Copy link
Copy Markdown
Member Author

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

Development

Successfully merging this pull request may close these issues.

Closing piano roll with ctrl+w causes tool to be locked into selection mode when piano roll is opened elsewhere

1 participant