brmlab v3 BarKeyboard: Fix shift state

This commit is contained in:
Petr Baudis 2012-09-26 03:54:19 +02:00
parent 5b185b8715
commit d12a3b6599

View file

@ -20,10 +20,10 @@ Grid {
model: keys.length model: keys.length
BarButton { BarButton {
width: buttonWidth; height: buttonHeight 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 == "<" property bool special: key == "^" || key == "<"
text: key == "^" ? "shift" : key == "<" ? "bksp" : shift ? key.toUpperCase() : key text: key == "^" ? "shift" : key == "<" ? "bksp" : key
fontSize: special ? 20 : 44 fontSize: special ? 20 : 44
onButtonClick: { onButtonClick: {