forked from Mirrorlandia_minetest/minetest
Fix error messages beeing shown on pressing cursor keys in various menus
This commit is contained in:
parent
f76b9d724b
commit
90f0859128
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user