From d12a3b65996913c7fb5faafb50fcab3cc9820b56 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Wed, 26 Sep 2012 03:54:19 +0200 Subject: [PATCH] brmlab v3 BarKeyboard: Fix shift state --- brmbar3/brmbar-gui-qt4/BarKeyboard.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brmbar3/brmbar-gui-qt4/BarKeyboard.qml b/brmbar3/brmbar-gui-qt4/BarKeyboard.qml index a8f5ba5..65d7c45 100644 --- a/brmbar3/brmbar-gui-qt4/BarKeyboard.qml +++ b/brmbar3/brmbar-gui-qt4/BarKeyboard.qml @@ -20,10 +20,10 @@ Grid { model: keys.length BarButton { width: buttonWidth; height: buttonHeight - property string key: keys.charAt(index) + property string key: shift ? keys.charAt(index).toUpperCase() : keys.charAt(index) property bool special: key == "^" || key == "<" - text: key == "^" ? "shift" : key == "<" ? "bksp" : shift ? key.toUpperCase() : key + text: key == "^" ? "shift" : key == "<" ? "bksp" : key fontSize: special ? 20 : 44 onButtonClick: {