Fix #2701: Do not show shortcut box when modifier key is pressed #2721
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The fix itself (first commit) was quite easy to add 😄
While I was at it, I also implemented an additional quality-of-life feature, for the following scenario:
s42
for submission with ID 42)In this scenario, it used to be the case that the "shortcut box" would stay visible. With the second commit, I make sure that the shortcut state is reset before performing the redirect, to make sure that it does not linger when moving back to the previous page.
Tested locally with this diff, see #1072 and #2588