Merge pull request #634 from Ragora/bugfix-editor-f-keys

BugFix: Correct the inability to use function keys F1-F10
This commit is contained in:
Brian Roberts 2021-10-25 22:56:52 -05:00 committed by GitHub
commit f6b3bda106
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;