Skip to content

Add missing keyboard shortcuts#6768

Open
davidovski wants to merge 10 commits intoLMMS:masterfrom
davidovski:keyboard_shortcuts
Open

Add missing keyboard shortcuts#6768
davidovski wants to merge 10 commits intoLMMS:masterfrom
davidovski:keyboard_shortcuts

Conversation

@davidovski
Copy link

This PR aims to improve ease of usability throughout the DAW, adding useful keyboard shortcuts.

  • Ctrl+D will discard changes when prompted to save changes (borrowed from GIMP)
  • Ctrl + B/Ctrl + Shift + B to add/remove bars in song editor
  • Shift+Q to quantize notes in piano roll

I felt like these actions were missing shortcuts and I have personally found these very helpful. I have added relevant tooltips where appropriate, however I'm not sure the best way to signpost the Ctrl+D shortcut.
As this is my first pull request, any criticism is greatly appreciated. Thank you!

@Spekular
Copy link
Member

Spekular commented Jul 8, 2023

  • Ctrl + B/Ctrl + Shift + B to add/remove bars in song editor

FYI Shift + Insert and Shift + Delete already do this.

@davidovski
Copy link
Author

Thanks for pointing that out, I've removed those two extra shortcuts and updated tooltips to reflect the existing shortcuts.

@JohannesLorenz
Copy link
Contributor

@davidovski If you want to get this merged, it would be nice if you could fix PhysSong's comment and solve the merge conflict.

While the documentation suggests using + (or | for Qt 6) for combining
key sequences, keys and modifier keys are of different enum types, which
raises the deprecated-enum-enum-conversion warning, which results in a
failed compilation due to our use of -Werror. Fun!

This isn't the first time this exact thing has been a problem, which is
why combine() in include/DeprecationHelper.h exists. This commit uses
that.

https://doc.qt.io/archives/qt-5.15/qkeysequence.html#details
https://doc.qt.io/qt-6/qkeysequence.html#details
@rubiefawn
Copy link
Contributor

I've fixed the merge conflict and any resulting compile errors, so if there's still interest in this PR, it should no longer be blocked on those issues.

@messmerd
Copy link
Member

messmerd commented Nov 6, 2025

As a heads-up, combine() was just renamed to keySequence() by #7339 (sorry @rubiefawn)

Also update `combine()` to `keySequence()` due to Qt6 upgrade
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.

6 participants