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

Make script/shader editor save shortcuts unique again #84931

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

YuriSizov
Copy link
Contributor

@YuriSizov YuriSizov commented Nov 15, 2023

Reverts #79337 because this change became a source of controversy and was vetoed. The old shortcut for saving scripts is back, it's Alt + Ctrl + S, which means the problem with focus #79337 was trying to hide will become obvious again. That's the trade-off.

I maintained the addition of a default shortcut for "Save as" but for consistency added Alt to it as well, so it's Alt + Ctrl + Shift + S. This combination doesn't seem to be used anywhere at this time. Removed it as it conflicted with "Save all scenes".

For the shader editor I replicated these same shortcuts. I think it makes sense to have these specific shortcuts contextual, so you can decide to save a script or a shader without any interference, while Ctrl + S saves the scene as before regardless of the editor and your context.

This is an immediate alternative to #84623 to unblock the 4.2 release, because #84623 tries to address some of the problems with the old behavior in an unfavorable manner, IMO. It also makes the current behavior impossible to achieve even if you set shortcuts to be the same on your end. So it doesn't benefit the other half of our users who liked the change from the old to the current.

@KoBeWi
Copy link
Member

KoBeWi commented Nov 15, 2023

This brings back the "detached Script Editor loses focus" bug. #83290 would need to be merged first.

@YuriSizov
Copy link
Contributor Author

YuriSizov commented Nov 15, 2023

I maintained the addition of a default shortcut for "Save as" but for consistency added Alt to it as well, so it's Alt + Ctrl + Shift + S. This combination doesn't seem to be used anywhere at this time.

Actually we use it for "Save all scenes". I missed it because it uses a different syntax for defining a keystroke (we should unify it for the codestyle's sake!).

So maybe I should just remove the default shortcut from script's/shader's "Save as". Let me know.

@akien-mga
Copy link
Member

So maybe I should just remove the default shortcut from script's/shader's "Save as". Let me know.

Makes sense I suppose, let's go back to the 4.1 shortcuts and re-assess for 4.3.

@YuriSizov
Copy link
Contributor Author

Done!

@akien-mga akien-mga merged commit cc135c5 into godotengine:master Nov 15, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants