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

Fix Edit Title, Duplicate Title shortcut overlap with Add Track #3312

Merged
merged 2 commits into from
May 9, 2020

Conversation

ferdnyc
Copy link
Contributor

@ferdnyc ferdnyc commented Mar 23, 2020

A user reported that the Duplicate Title shortcut both (a) didn't work, and (b) wasn't editable. Turned out, it was set to Ctrl+Shift+T, which is a problem because so was Edit Title. Worse, neither of those actually responded to Ctrl+Shift+T, because Ctrl+Shift+T is Add Track! They also appeared nowhere in the settings file.

I managed to fix that, made them both configurable, with Duplicate Track set to Ctrl+Shift+C — it was free — and Edit Title not set by default.

As part of making the shortcuts properly react to selection in the file views, I rewrote a bunch of the selection-handling logic so it's less easily confused, and accidentally fixed #3240 in the process.

Fixes #3310
Fixes #3240

They were both set to Ctrl+Shift+T which is also Add Track.

* Set Duplicate Title to Ctrl+Shift+C (it was free), and clear the
  default shortcut for Edit Title.
* Add both to the settings file, so they can be changed.
* Rewrite context menu and selection handling in file views
@SuslikV
Copy link
Contributor

SuslikV commented Mar 23, 2020

Conflict of interests with the: #3264

@ferdnyc
Copy link
Contributor Author

ferdnyc commented Mar 23, 2020

Conflict of interests with the: #3264

Is it? Darn. I haven't looked at that one yet.

They may be reconcilable — the stuff I touched mostly uses the QSelectionModel (which will still be there regardless, in some form), and anything that's retained gets immediately translated into OpenShot File IDs. (As is required with regular QModelIndexes, since they're not persistent.)

We may need to shuffle some things around a bit between us, but hopefully solvable.

@SuslikV
Copy link
Contributor

SuslikV commented Mar 23, 2020

I'm using slightly different solution for the selection - instead of Qt signal, I'm running selection update before the function that will use the results of the selection (it's only few places). Thus, some Qt events may come later if PC is busy and this is OK.

@jonoomph jonoomph changed the title Fix Edit Title, Duplicate Title shortcut overlap with Add TRack Fix Edit Title, Duplicate Title shortcut overlap with Add Track May 9, 2020
@jonoomph
Copy link
Member

jonoomph commented May 9, 2020

@ferdnyc I'm worried this might also conflict with the Emoji branch, but I'm gonna just merge it, and then reconcile the changes on the Emoji branch. Merging now. Thanks!

@jonoomph jonoomph merged commit 9edd693 into OpenShot:develop May 9, 2020
@ferdnyc ferdnyc deleted the title-shortcuts branch January 7, 2022 02:26
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.

"duplicate titles" hotkey does not work "Add to timeline" dialog contains no files or only one
3 participants