Skip to content

Commit 8577b71

Browse files
committed
Give the script interpreter a keyboard shortcut
The shortcut is shift+'[' (i.e.: '{' on American keyboards). Hopefully it is easy to remember, since '[' is the shortcut for the Script Editor. We cannot use ']' because ImageJ 1.x already reserves that for the "Show All" command.
1 parent 3ea9342 commit 8577b71

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/org/scijava/ui/swing/script/ScriptInterpreterPlugin.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.scijava.command.Command;
3535
import org.scijava.event.ContextDisposingEvent;
3636
import org.scijava.event.EventHandler;
37+
import org.scijava.plugin.Menu;
3738
import org.scijava.plugin.Parameter;
3839
import org.scijava.plugin.Plugin;
3940

@@ -43,7 +44,11 @@
4344
* @author Johannes Schindelin
4445
* @author Curtis Rueden
4546
*/
46-
@Plugin(type = Command.class, menuPath = "Plugins>Scripting>Script Interpreter")
47+
@Plugin(type = Command.class, menu = { //
48+
@Menu(label = "Plugins"), //
49+
@Menu(label = "Scripting"), //
50+
@Menu(label = "Script Interpreter", accelerator = "shift open_bracket") //
51+
})
4752
public class ScriptInterpreterPlugin implements Command {
4853

4954
@Parameter

0 commit comments

Comments
 (0)