From be66e6d5b5043383cff10f51bd5a9daa4b9fc113 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Dec 2014 13:30:13 +0300 Subject: Show long key names in browser box. --- src/input/inputmanager.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/input/inputmanager.cpp') diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp index 0d1d0bdbe..ecf2aac3e 100644 --- a/src/input/inputmanager.cpp +++ b/src/input/inputmanager.cpp @@ -447,6 +447,16 @@ std::string InputManager::getKeyValueByName(const std::string &keyName) return getKeyValueString((*it).second); } +std::string InputManager::getKeyValueByNameLong(const std::string &keyName) +{ + const std::map::const_iterator + it = mNameMap.find(keyName); + + if (it == mNameMap.end()) + return std::string(); + return getKeyStringLong((*it).second); +} + void InputManager::addActionKey(const int action, const int type, const int val) { -- cgit v1.2.3-70-g09d2