From 5a7966990b7e9db9556c1ba15da0aba3fe0ec92c Mon Sep 17 00:00:00 2001 From: sungmin ha Date: Fri, 12 Jun 2015 16:39:11 +0900 Subject: [PATCH] shortcut: added controllerKeyList search If skin is general-purpose, hwkey is searched at controllerKeyList additionaly. Change-Id: I56847b917a64870399db65a37e851434bcf03ede Signed-off-by: sungmin ha --- tizen/src/ui/input/keyboardshortcut.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tizen/src/ui/input/keyboardshortcut.cpp b/tizen/src/ui/input/keyboardshortcut.cpp index d7555f6bdd..8acd7027e8 100644 --- a/tizen/src/ui/input/keyboardshortcut.cpp +++ b/tizen/src/ui/input/keyboardshortcut.cpp @@ -403,7 +403,16 @@ int KeyboardShortcut::getHwKeyCode(QString item) } if (index == hwKeyList.count()) { - qWarning() << item << "is not exist in KeyList"; + for (index = 0; index < controllerKeyList.count(); index++) { + if (controllerKeyList.at(index)->name.compare(item) == 0) { + keyCode = controllerKeyList.at(index)->keycode; + break; + } + } + + if (index == controllerKeyList.count()) { + qWarning() << item << "is not exist in KeyList"; + } } return keyCode; -- 2.34.1