[PR #11389] [MERGED] Fix Touch Keyboard invocation issue #28546

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11389
Author: @yosuemask2
Created: 10/1/2021
Status: Merged
Merged: 10/4/2021
Merged by: @undefined

Base: mainHead: dev/yosuemas/TouchKeyboardInvocation


📝 Commits (3)

  • 7121a41 Fixed an issue that Touch Keyboard is not invoked when I tap on PowerShell.
  • 8e697b5 Fixed typo.
  • 1d535cc Fixed typo.

📊 Changes

6 files changed (+30 additions, -7 deletions)

View changed files

📝 src/inc/contsf.h (+2 -1)
📝 src/interactivity/win32/WindowIme.cpp (+12 -0)
📝 src/interactivity/win32/windowime.hpp (+1 -0)
📝 src/interactivity/win32/windowproc.cpp (+1 -1)
📝 src/tsf/ConsoleTSF.h (+12 -3)
📝 src/tsf/contsf.cpp (+2 -2)

📄 Description

This fixes an issue that Touch Keyboard is not invoked when user taps on the PowerShell.

Before this change, it was returning small rectangle on the right of the cursor. Touch Keyboard should be invoked by tapping anywhere inside the console.

PR Checklist

  • Closes #xxx
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Documentation updated. If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated.
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

ITfContextOwner::GetScreenExt is used to define rectangle that can invoke Touch Keyboard.
https://docs.microsoft.com/en-us/windows/win32/api/msctf/nf-msctf-itfcontextowner-getscreenext

Validation Steps Performed

  • Touch keyboard was invoked by tapping inside the Console while Hardware Keyboard was not attached.
  • Selecting text worked as expected without invoking touch keyboard.
  • Long tapping the console invoked Touch Keyboard. I would like to confirm if this is the expected behavior.

🔄 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/11389 **Author:** [@yosuemask2](https://github.com/yosuemask2) **Created:** 10/1/2021 **Status:** ✅ Merged **Merged:** 10/4/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/yosuemas/TouchKeyboardInvocation` --- ### 📝 Commits (3) - [`7121a41`](https://github.com/microsoft/terminal/commit/7121a41c45911c8360ade9ed46ac49b4b01217e5) Fixed an issue that Touch Keyboard is not invoked when I tap on PowerShell. - [`8e697b5`](https://github.com/microsoft/terminal/commit/8e697b5b2ba597834033ad139b3750fc4b29e384) Fixed typo. - [`1d535cc`](https://github.com/microsoft/terminal/commit/1d535ccbadf699b06a028809409f19c8f5ebd853) Fixed typo. ### 📊 Changes **6 files changed** (+30 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/inc/contsf.h` (+2 -1) 📝 `src/interactivity/win32/WindowIme.cpp` (+12 -0) 📝 `src/interactivity/win32/windowime.hpp` (+1 -0) 📝 `src/interactivity/win32/windowproc.cpp` (+1 -1) 📝 `src/tsf/ConsoleTSF.h` (+12 -3) 📝 `src/tsf/contsf.cpp` (+2 -2) </details> ### 📄 Description This fixes an issue that Touch Keyboard is not invoked when user taps on the PowerShell. Before this change, it was returning small rectangle on the right of the cursor. Touch Keyboard should be invoked by tapping anywhere inside the console. ## PR Checklist * [ ] Closes #xxx * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [ ] Schema updated. * [x] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx ## Detailed Description of the Pull Request / Additional comments ITfContextOwner::GetScreenExt is used to define rectangle that can invoke Touch Keyboard. https://docs.microsoft.com/en-us/windows/win32/api/msctf/nf-msctf-itfcontextowner-getscreenext ## Validation Steps Performed * [x] Touch keyboard was invoked by tapping inside the Console while Hardware Keyboard was not attached. * [x] Selecting text worked as expected without invoking touch keyboard. * [x] Long tapping the console invoked Touch Keyboard. I would like to confirm if this is the expected behavior. --- <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:29:14 +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#28546