Input manager editmap.cpp

Fixes #6585 (last commit does it).