editor-devtools: add Alt + Click as middle-click alternative #3171
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.
Resolves #2321 (specifically #2321 (comment))
Changes
Alt + Click is now capable of triggering the middle-click popup and the "jump to" feature.
The help modal has also been tweaked to accommodate this change. I don't know if I'm supposed to change the strings in Transifex or not, and I don't have access to Transifex anyway, so I just changed them in
addons-l10n/en/editor-devtools.jsonfor now.Reason for changes
Currently, for users without a mouse or a touchpad where a triple-finger-tap simulates a middle-click, the "jump to" feature is unusable.
It's available for the middle-click popup as well for simplicity code-wise and consistency.
I would have just used Ctrl + Space, but it may have caused issues for existing Ctrl + Space users using the shortcut with their cursor inadvertently positioned over a block.
Tests
Tested in Chromium 92 and Firefox 90.
Middle-clicking and Ctrl + Space are unaffected by this change.