package/qt5/qt5virtualkeyboard: add arrow key navigation build option
authorSébastien Szymanski <sebastien.szymanski@armadeus.com>
Mon, 3 Dec 2018 08:25:09 +0000 (09:25 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 9 Dec 2018 16:36:00 +0000 (17:36 +0100)
It allows controlling the keyboard using the arrow and return keys.

Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Reviewed-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/qt5/qt5virtualkeyboard/Config.in
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk

index 57b0c703b0f1edd29597d865f7a4439ee2fc33ac..c3f2f3760486451ac598f20dd53ea36d1303416a 100644 (file)
@@ -53,4 +53,9 @@ config BR2_PACKAGE_QT5VIRTUALKEYBOARD_HANDWRITING
          Lipi Toolkit (LipiTk) is an open source toolkit for online
          Handwriting Recognition.
 
+config BR2_PACKAGE_QT5VIRTUALKEYBOARD_ARROW_KEY_NAVIGATION
+       bool "Arrow key navigation"
+       help
+         Allows controlling the keyboard using the arrow and return keys.
+
 endif
index 4aa5fc9575691833557cf9bb397fe2cfd4563ea0..8ce31697744886e0eede60b70576ae3ae20c42ee 100644 (file)
@@ -53,6 +53,10 @@ QT5VIRTUALKEYBOARD_LICENSE_FILES += src/virtualkeyboard/3rdparty/lipi-toolkit/MI
 endif
 endif
 
+ifeq ($(BR2_PACKAGE_QT5VIRTUALKEYBOARD_ARROW_KEY_NAVIGATION),y)
+QT5VIRTUALKEYBOARD_QMAKEFLAGS += CONFIG+=arrow-key-navigation
+endif
+
 ifdef QT5VIRTUALKEYBOARD_3RDPARTY_PARTS
 define QT5VIRTUALKEYBOARD_INSTALL_TARGET_3RDPARTY_PARTS
        cp -dpfr $(STAGING_DIR)/usr/qtvirtualkeyboard $(TARGET_DIR)/usr