Binding enter to copy breaks Command Palette #12414

Closed
opened 2026-01-31 03:15:07 +00:00 by claunia · 4 comments
Owner

Originally created by @LuanVSO on GitHub (Feb 5, 2021).

Originally assigned to: @Don-Vito on GitHub.

Environment

Windows build number: 10.0.19042.789
Windows Terminal version (if applicable):1.6.10272.0
Any other software?

Steps to reproduce

  1. put this in actions:
{"command": {"action": "copy","singleLine": false},"keys": "enter"}
  1. try to use cmdpallet

Expected behavior

when enter is pressed in cmdpall the highlighted action is executed

Actual behavior

nothing is executed

Observations

regression from 1.5

Originally created by @LuanVSO on GitHub (Feb 5, 2021). Originally assigned to: @Don-Vito on GitHub. <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 10.0.19042.789 Windows Terminal version (if applicable):1.6.10272.0 Any other software? ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> 1. put this in actions: ```json {"command": {"action": "copy","singleLine": false},"keys": "enter"} ``` 2. try to use cmdpallet # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> when enter is pressed in cmdpall the highlighted action is executed # Actual behavior nothing is executed # Observations regression from 1.5
Author
Owner

@Don-Vito commented on GitHub (Feb 5, 2021):

@LuanVSO - this is absolutely a regression.

@zadjii-msft - I think I found why key -binding are not working in settings UI

For some reason the KeyDownHandler of terminal page is bound to PreviewKeyDown of CommandPaletter rather than KeyDown of the terminal page. Fixing this, fixed the SUI binding as well.

Please assign to me 😊

@Don-Vito commented on GitHub (Feb 5, 2021): @LuanVSO - this is absolutely a regression. @zadjii-msft - I think I found why key -binding are not working in settings UI For some reason the KeyDownHandler of terminal page is bound to PreviewKeyDown of CommandPaletter rather than KeyDown of the terminal page. Fixing this, fixed the SUI binding as well. Please assign to me :blush:
Author
Owner

@zadjii-msft commented on GitHub (Feb 5, 2021):

@Don-Vito you're the man. I'll throw you on the Assigned-to line, since I had a feeling you had a beat on this one 😄

@zadjii-msft commented on GitHub (Feb 5, 2021): @Don-Vito you're the man. I'll throw you on the Assigned-to line, since I had a feeling you had a beat on this one 😄
Author
Owner

@Don-Vito commented on GitHub (Feb 5, 2021):

@zadjii-msft - the scope of the issue is wider: copy and paste interact with terminal rather than the search box. I guess it is a good candidate for servicing.

@Don-Vito commented on GitHub (Feb 5, 2021): @zadjii-msft - the scope of the issue is wider: copy and paste interact with terminal rather than the search box. I guess it is a good candidate for servicing.
Author
Owner

@ghost commented on GitHub (Feb 11, 2021):

:tada:This issue was addressed in #9056, which has now been successfully released as Windows Terminal Preview v1.6.10412.0.🎉

Handy links:

@ghost commented on GitHub (Feb 11, 2021): :tada:This issue was addressed in #9056, which has now been successfully released as `Windows Terminal Preview v1.6.10412.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.6.10412.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12414