Commit e5c0a690 authored by eekkelund's avatar eekkelund

[Keyboard] Make keyboard to rotate when homescreen rotates.

parent 08101d26
......@@ -48,7 +48,6 @@ Item {
onPressed: cleanup()
}
function cleanup(){
searchField.focus = false
appLauncher.searchString = ""
......@@ -59,6 +58,12 @@ Item {
searchListView.visible = false;
}
}
onVisibleChanged: {
if( visible){
searchField.forceActiveFocus()
} else searchField.focus = false
oldHeight=height
}
function calculateHeight()
{
......@@ -127,7 +132,11 @@ Item {
value: searchField.text.toLowerCase().trim()
}
onTextChanged: {
<<<<<<< HEAD:src/qml/applauncher/SearchListView.qml
if(searchField.lenght>0) {
=======
if(text.lenght>0) {
>>>>>>> 2aeaeb0... [Keyboard] Make keyboard to rotate when homescreen rotates.:src/qml/SearchListView.qml
searchField.forceActiveFocus()
}
}
......
......@@ -75,6 +75,7 @@ Compositor {
onSensorOrientationChanged: {
screenOrientation = sensorOrientation
contentOrientation = screenOrientation
}
Connections {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment