Switch keyboard layout on left click
This commit is contained in:
parent
dd74f2de31
commit
152e2f6eac
1 changed files with 6 additions and 0 deletions
|
|
@ -257,6 +257,12 @@ Rectangle
|
||||||
y: areaBottom.height - height - 5
|
y: areaBottom.height - height - 5
|
||||||
|
|
||||||
text: keyboard.layouts[keyboard.currentLayout].longName
|
text: keyboard.layouts[keyboard.currentLayout].longName
|
||||||
|
onClicked: {
|
||||||
|
var newId = keyboard.currentLayout+1;
|
||||||
|
if (newId >= keyboard.layouts.length)
|
||||||
|
newId = 0;
|
||||||
|
keyboard.currentLayout = newId;
|
||||||
|
}
|
||||||
|
|
||||||
font: fonts.slicesBottomLeft
|
font: fonts.slicesBottomLeft
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue