* [Editor] BugFix: Correct the inability to use function keys F1-F10 when running the editor. These keys were supposed to open a series of other editors.

This commit is contained in:
Robert MacGregor 2021-10-24 19:10:59 -04:00
parent 14ebeaf3eb
commit 27d75486e6

View file

@ -359,8 +359,9 @@ function EditorGui::addToEditorsMenu( %this, %displayName, %accel, %newPlugin )
if(!%alreadyExists)
{
EditorsMenuList.add(%displayName TAB %accel TAB %newPlugin);
%windowMenu.addItem( %count, %displayName TAB %accel TAB %newPlugin );
%pluginCommand = "EditorGui.setEditor(" @ %newPlugin @ ");";
EditorsMenuList.add(%displayName TAB %accel TAB %pluginCommand);
%windowMenu.addItem( %count, %displayName TAB %accel TAB %pluginCommand);
}
return %accel;