[PR #4867] Show InputPanel on focus and pointer press #25998

Open
opened 2026-01-31 09:13:12 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/4867

State: closed
Merged: Yes


Summary of the Pull Request

I originally thought that setting TSFInputControl::_editContext.InputPaneDisplayPolicy to be Automatic would allow the InputPanel to show and hide automatically when TSFInputControl gains and loses focus. It doesn't seem to behave that way, so we'll show the InputPanel manually.

I'll show the panel during PointerPressedHandler and during GotFocusHandler. A user will have the on-screen keyboard pop up when getting focus, but if they close the keyboard, they can simply re-tap on the terminal to bring it back up.

PR Checklist

Validation Steps Performed

Played on my surfaces book with the on screen keyboard by closing/tapping on the terminal and using the search box.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/4867 **State:** closed **Merged:** Yes --- <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request I originally thought that setting `TSFInputControl::_editContext.InputPaneDisplayPolicy` to be Automatic would allow the InputPanel to show and hide automatically when `TSFInputControl` gains and loses focus. It doesn't seem to behave that way, so we'll show the InputPanel manually. I'll show the panel during `PointerPressedHandler` and during `GotFocusHandler`. A user will have the on-screen keyboard pop up when getting focus, but if they close the keyboard, they can simply re-tap on the terminal to bring it back up. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #3639 * [x] CLA signed. * [x] Tests added/passed ## Validation Steps Performed Played on my surfaces book with the on screen keyboard by closing/tapping on the terminal and using the search box.
claunia added the pull-request label 2026-01-31 09:13:12 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25998