shortcut: added controllerKeyList search
authorsungmin ha <sungmin82.ha@samsung.com>
Fri, 12 Jun 2015 07:39:11 +0000 (16:39 +0900)
committersungmin ha <sungmin82.ha@samsung.com>
Fri, 12 Jun 2015 07:49:22 +0000 (16:49 +0900)
If skin is general-purpose, hwkey is searched at controllerKeyList additionaly.

Change-Id: I56847b917a64870399db65a37e851434bcf03ede
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
tizen/src/ui/input/keyboardshortcut.cpp

index d7555f6..8acd702 100644 (file)
@@ -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;