From d3f8069caf2e1b84bb60246dc1e594dbf6066d7b Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Thu, 14 May 2015 00:42:17 +0200 Subject: [PATCH] bindings: recognize backspace_2 as backspace and add deprecation message --- src/bindings.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bindings.cpp b/src/bindings.cpp index ebc42a32..18e03ecd 100644 --- a/src/bindings.cpp +++ b/src/bindings.cpp @@ -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; }