bindings: recognize backspace_2 as backspace and add deprecation message

This commit is contained in:
Andrzej Rybczak
2015-05-14 00:42:17 +02:00
parent dcac42748a
commit d3f8069caf

View File

@@ -94,6 +94,11 @@ NC::Key::Type stringToSpecialKey(const std::string &s)
}
else if (!s.compare("backspace"))
result = NC::Key::Backspace;
else if (!s.compare("backspace_2"))
{
std::cerr << "WARNING: value 'backspace_2' is deprecated and will be removed in 0.8, use 'backspace' instead.\n";
result = NC::Key::Backspace;
}
return result;
}