Site Settings shortcut issues

Hi there,
I think there is a bug with the studio settings. If you are in a production bundle and you type “shift+P” it clears the bundle. I was trying to type an environment variable name and somehow the text box lost focus. When I started typing and got to my capital P, I lost all my changes. I didn’t know what was going on, so when I set the bundle back to production, I copied the settings thinking my lost settings would return, but it cleared everything.

Is the shortcut intended behaviour? Is there a way to get back my lost settings?

Thanks

edit: it was studio settings, not site settings

The Shift+P shortcuts sets and unsets production, so with the wrong focus… that would indeed unset Production bundle unexpectedly which may have unintended consequences.

However, this even having effect on another page than the Bundles page, like e.g. the Site Settings page is definitely not intentional and would be a potentially dangerous issue like you describe.

@Innders ?

I can reproduce it here on Windows + Firefox with 1.6.1+202501061400

When e.g. here without any focus:

Pressing SHIFT+P unsets my current Production Bundle.
Turning it into:

With it indeed being unset:
image

Turns out this is a much large issue involving shortcuts in general. When moving pages the shortcuts for that page were not being properly unmounted and so stuck around and could be invoked.

This PR should fix that. Thank you for reporting.

1 Like

Should we actually have any shortcut for such important operation like setting bundle variant?

I hope this doesn’t change the answer but it was the studio settings, rather than the site settings @BigRoy

I would say that this definitely should not have shortcut. It’s not trigger nearly often enough to warrant it + it could be dangerous.

Changes will be in the next release.

2 Likes