Repository navigation
ios: keep the laptop deck filled when the keyboard is dismissed - #8222
UTMapp-bot wants to merge 1 commit into
Conversation
On iPhone Duo folded like a laptop, the dismiss button in the key row dismissed the whole keyboard and left the bottom half empty. In the deck it now hides only the key row, which gives its space to the guest display, and releases the modifiers toggled in it. A swipe down on the display does the same, and a swipe up brings the row back. The toolbar's keyboard button steps through the three things the deck can show: the keyboard with the key row, the keyboard alone and the touchpad. Its icon shows the next step. A keyboard the system took away is brought back first, and a terminal window, which has no touchpad, keeps its keyboard. Opening the device brings the keyboard back, with its key row, when the deck showed a keyboard, and leaves it away when the deck showed the touchpad. That is also what a window saved while folded remembers. Fixes utmapp#8220 Assisted-by: Claude:claude-opus-5-5
|
The runner failed to run the tests. If the failure is not due to this change then make a new PR fixing it. |
|
The failure isn't caused by this PR, and I found nothing in the repository to fix, so I haven't opened a second PR yet. What failed: only the macOS Launch Services returned no process for the test host, so Xcode aborted. No test failed. Why it isn't this change:
What changed on the CI side: the passing runs had Next step: re-run the failed job; this account can't. If it fails the same way again, it's a runner problem rather than a one-off. Then a small PR to |
On iPhone Duo folded like a laptop, the dismiss button in the key row dismissed the whole keyboard and left the bottom half of the screen empty. This keeps the deck filled at all times:
Fixes #8220
Testing
Tested by an AI (Claude) on the iPhone Duo simulator, iOS 27.1 (Xcode 27.1, Device Hub) running in a macOS 27 VM, with a QEMU ARM VM without drives started in the simulator (its display stays black). Laptop mode is the Duo opened and rotated so the fold is horizontal.
Before (current
main): folded, the deck shows the keyboard with the key row; pressing the row's dismiss button removes the keyboard and the bottom half is empty.After (this PR), toolbar keyboard button and dismiss button:
Opening and folding again:
Opened flat (outside the deck), the toolbar still shows the keyboard with its row and the dismiss button still hides it, as before.
Automated:
./scripts/test_utm.sh -s(217 tests, 0 failures),./scripts/test_utm.sh -s iPad -only-testing:UTMUITests-iOS(7 tests, 0 failures),./scripts/test_utm.shon macOS (288 tests, 16 skipped: the VM lifecycle tests, which run only in the signed host; 0 failures). Builds for the iOS Simulator and the visionOS Simulator.Not exercised: the swipe gestures on the display (Device Hub gives no swipe input), a hardware keyboard, a terminal window in the deck, and the modifier release on dismiss. Outside the deck the code paths are unchanged, so other devices were not re-screenshotted.