mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-07 21:04:00 +02:00
brmlab v3 BarKeyboard: Fix shift state
This commit is contained in:
parent
5b185b8715
commit
d12a3b6599
1 changed files with 2 additions and 2 deletions
|
@ -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: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue