Fixes #1674 Custom MyCodes not accepted by editor.

Fixes #1674