on xenial help sign in
Test a hack.
commit67eab29740df0cb364217732d75e4a279a758142 authorJosh Arenson <joshua.arenson@canonical.com> dateTue 23 Feb 2016, 16:08 (11 years ago) parent93fdc98
1 file changed+7−7
qml/OrientedShell.qml+7−7
qml/OrientedShell.qml+7−7
@@ -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++) {