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

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/4867
Author: @leonMSFT
Created: 3/10/2020
Status: Merged
Merged: 3/10/2020
Merged by: @undefined

Base: masterHead: dev/lelian/inputpanel


📝 Commits (3)

  • 33b4f50 placing input pane call in TSF
  • 9888842 lemme put this in pointer pressed too hehe
  • f811c56 comments

📊 Changes

3 files changed (+11 additions, -3 deletions)

View changed files

📝 src/cascadia/TerminalControl/TSFInputControl.cpp (+1 -3)
📝 src/cascadia/TerminalControl/TermControl.cpp (+9 -0)
📝 src/cascadia/TerminalControl/pch.h (+1 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/4867 **Author:** [@leonMSFT](https://github.com/leonMSFT) **Created:** 3/10/2020 **Status:** ✅ Merged **Merged:** 3/10/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `dev/lelian/inputpanel` --- ### 📝 Commits (3) - [`33b4f50`](https://github.com/microsoft/terminal/commit/33b4f50bc7072e7c3a0604c0cf0910fc6740e8e2) placing input pane call in TSF - [`9888842`](https://github.com/microsoft/terminal/commit/988884240d25148bf40778e29ac6a87edf21cad4) lemme put this in pointer pressed too hehe - [`f811c56`](https://github.com/microsoft/terminal/commit/f811c5676d5ba084a45bf1d70b2f1e8486149f37) comments ### 📊 Changes **3 files changed** (+11 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/TSFInputControl.cpp` (+1 -3) 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+9 -0) 📝 `src/cascadia/TerminalControl/pch.h` (+1 -0) </details> ### 📄 Description <!-- 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:13:10 +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#25993