From 5c2fa9b9ad9b17475607a1b57782faa545cda446 Mon Sep 17 00:00:00 2001 From: lisa-wolfgang Date: Fri, 30 Jul 2021 14:46:45 -0500 Subject: [PATCH] Initial commit --- addons-l10n/en/editor-devtools.json | 6 +++--- addons/editor-devtools/DevTools.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons-l10n/en/editor-devtools.json b/addons-l10n/en/editor-devtools.json index ebab600bcb..a830398b0b 100644 --- a/addons-l10n/en/editor-devtools.json +++ b/addons-l10n/en/editor-devtools.json @@ -1,7 +1,7 @@ { "editor-devtools/help-title": "Scratch 3 Developer Tools", "editor-devtools/help-by": "by {url} and Scratch Addons contributors & translators", - "editor-devtools/ctrl-space": "Ctrl + Space or Middle Click", + "editor-devtools/ctrl-space": "Ctrl + Space, Middle Click, or Alt + Click", "editor-devtools/ctrl-space-desc": "Pops up a floating input box where you can type the name of a block (or parts of it) and drag the block into the code to make use of it right there.", "editor-devtools/code-tab-features": "Code Tab Features", "editor-devtools/interactive-find-bar": "Interactive Find Bar (Ctrl + F)", @@ -17,8 +17,8 @@ "editor-devtools/paste-from-clipboard-desc": "Pastes from the clipboard, but importantly pastes it where your mouse cursor is so you can then place it (rather than placing it where you copied it from like the current scratch implementation).", "editor-devtools/swap-variable": "Swap Variable in Sprite", "editor-devtools/swap-variable-desc": "Right click a variable in your scripts for this new option. It allows you to switch all references to this variable in the current sprite all in one go to another variable. This is great for when you made a mistake and want to switch from one variable to another or need to change from a 'for all sprites' to a 'for this sprite only'. This option will not remove the old variable and will not affect any other sprites variables.", - "editor-devtools/middleclick": "Middle Click", - "editor-devtools/middleclick-desc": "Using the middle mouse button on a variable or custom block allows you to jump to its definition or open it in the interactive find bar.", + "editor-devtools/middleclick": "Jump To", + "editor-devtools/middleclick-desc": "Using the middle mouse button or Alt + Click on a variable or custom block allows you to jump to its definition or open it in the interactive find bar.", "editor-devtools/ctrl-lr": "Ctrl + Left, Ctrl + Right", "editor-devtools/ctrl-lr-desc": "Navigate to previous / next visited position in the code area (after using the navigate to block or find bar). This allows you to middle click a custom block to go to its definition, then press ctrl + Left to go back to where you were before.", "editor-devtools/costume-tab-features": "Costumes Tab Features", diff --git a/addons/editor-devtools/DevTools.js b/addons/editor-devtools/DevTools.js index 7ebc800c02..632940fd14 100644 --- a/addons/editor-devtools/DevTools.js +++ b/addons/editor-devtools/DevTools.js @@ -1400,7 +1400,7 @@ export default class DevTools { this.hideFloatDropDown(); } - if (e.button === 1) { + if (e.button === 1 || e.altKey) { // Wheel button... try { this.middleClick(e);