ongoing menu event -> command migration.

It does not build, commited as broken state to report reproducible MD bug.