Commit e5c0a690 authored by eekkelund's avatar eekkelund

[Keyboard] Make keyboard to rotate when homescreen rotates.

parent 08101d26
...@@ -48,7 +48,6 @@ Item { ...@@ -48,7 +48,6 @@ Item {
onPressed: cleanup() onPressed: cleanup()
} }
function cleanup(){ function cleanup(){
searchField.focus = false searchField.focus = false
appLauncher.searchString = "" appLauncher.searchString = ""
...@@ -59,6 +58,12 @@ Item { ...@@ -59,6 +58,12 @@ Item {
searchListView.visible = false; searchListView.visible = false;
} }
} }
onVisibleChanged: {
if( visible){
searchField.forceActiveFocus()
} else searchField.focus = false
oldHeight=height
}
function calculateHeight() function calculateHeight()
{ {
...@@ -127,7 +132,11 @@ Item { ...@@ -127,7 +132,11 @@ Item {
value: searchField.text.toLowerCase().trim() value: searchField.text.toLowerCase().trim()
} }
onTextChanged: { onTextChanged: {
<<<<<<< HEAD:src/qml/applauncher/SearchListView.qml
if(searchField.lenght>0) { if(searchField.lenght>0) {
=======
if(text.lenght>0) {
>>>>>>> 2aeaeb0... [Keyboard] Make keyboard to rotate when homescreen rotates.:src/qml/SearchListView.qml
searchField.forceActiveFocus() searchField.forceActiveFocus()
} }
} }
......
...@@ -75,6 +75,7 @@ Compositor { ...@@ -75,6 +75,7 @@ Compositor {
onSensorOrientationChanged: { onSensorOrientationChanged: {
screenOrientation = sensorOrientation screenOrientation = sensorOrientation
contentOrientation = screenOrientation
} }
Connections { 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