@@ -78,6 +78,13 @@ Rectangle {
7878 InputDeviceModel {
7979 id: keyboardsModel
8080 deviceFilter: InputInfo.Keyboard
81+ onDeviceAdded: {
82+ root.forceOSKEnabled = autopilotDevices.autopilotDevicePresent();
83+ }
84+
85+ onDeviceRemoved: {
86+ root.forceOSKEnabled = autopilotDevices.autopilotDevicePresent();
87+ }
8188 }
8289
8390 InputDeviceModel {
@@ -94,13 +101,6 @@ Rectangle {
94101 UnitySortFilterProxyModel {
95102 id: autopilotDevices
96103 model: keyboardsModel
97− onDeviceAdded: {
98− root.forceOSKEnabled = autopilotDevicePresent();
99− }
100−
101− onDeviceRemoved: {
102− root.forceOSKEnabled = autopilotDevicePresent();
103− }
104104
105105 function autopilotdDevicePresent() {
106106 for(var i = 0; i < count; i++) {