Sg2.9
Enter Key Shortcut
Recent RSS
Enter Key Shortcut
From:  Futuremotion
Date:  17. April 2011, 04:24

Is it possible to change the key to edit the active script from ENTER to something else, or even just hack the app to not use it at all? Even with the scriptographer window closed, whenever I make font changes, I confirm them with enter--and it opens my text editor to edit the current script. What's strange is that it's unpredictable too. After writing this, I just tried it and it worked correctly.

Thanks! Great tool.

Re: Enter Key Shortcut
From:  Futuremotion
Date:  17. April 2011, 04:42

Well, got a little impatient. Looks like you can edit "Plug-ins\Scriptographer\Core\JavaScript\gui\main.js" and just comment out the last "else if" statement around line 797:

else if (/return|enter/.test(event.keyCode)) {
// Choose
chooseEntry(entry);
return true;
}

just wrap that in a comment block as such:

/*
else if (/return|enter/.test(event.keyCode)) {
// Choose
chooseEntry(entry);
return true;
}*/

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Mosaic Staple Raster 24.03.10