Fix error messages beeing shown on pressing cursor keys in various menus

master
sapier 2014-05-11 02:57:47 +02:00
parent f76b9d724b
commit 90f0859128
1 changed files with 8 additions and 0 deletions

View File

@ -193,6 +193,14 @@ struct LocalFormspecHandler : public TextDest
}
}
// don't show error message for unhandled cursor keys
if ( (fields.find("key_up") != fields.end()) ||
(fields.find("key_down") != fields.end()) ||
(fields.find("key_left") != fields.end()) ||
(fields.find("key_right") != fields.end())) {
return;
}
errorstream << "LocalFormspecHandler::gotText unhandled >" << m_formname << "< event" << std::endl;
int i = 0;
for (std::map<std::string,std::string>::iterator iter = fields.begin();