Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wpf: fix a handful of issues with the wpf control #6983

Merged
7 commits merged into from
Jul 20, 2020
Merged

Conversation

DHowett
Copy link
Member

@DHowett DHowett commented Jul 20, 2020

  • send alt/F10 through the control
    We were not listening for WM_SYSKEY{UP,DOWN}
  • extract the actual scancode during WM_CHAR, not the bitfield
    We were accidentally sending some of the additional keypress data in with
    the character event in Win32 Input Mode
  • set default fg/bg to campbell
    The WPF control starts up in PowerShell blue even though it's not typically used
    in PowerShell blue.
  • don't rely on the font to determine wideness
    This is a cross-port of TermControl: force all ambiguous glyphs to be narrow #2928 to the WPF control
  • deterministic shutdown
    In testing, I saw a handful of crashes on teardown because we were not shutting
    down the render thread properly.
  • don't pass 10 for the font weight ...
    When Cascadia Code is set, it just looks silly.
  • trigger render when selection is cleared, do it under lock

Fixes #6966.

@ghost ghost added Area-WPFControl Things related to the WPF version of the TermControl Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-1 A description (P1) Product-Terminal The new Windows Terminal. labels Jul 20, 2020
@DHowett DHowett changed the title wpf: accumulated fixes wpf: fix a handful of issues with the wpf control Jul 20, 2020
Copy link
Member

@carlos-zamora carlos-zamora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So glad you caught the font weight change hahaha

@DHowett
Copy link
Member Author

DHowett commented Jul 20, 2020

@msftbot merge this in 1 minute

@ghost ghost added the AutoMerge Marked for automatic merge by the bot when requirements are met label Jul 20, 2020
@ghost
Copy link

ghost commented Jul 20, 2020

Hello @DHowett!

Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:

  • I won't merge this pull request until after the UTC date Mon, 20 Jul 2020 23:12:50 GMT, which is in 1 minute

If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you".

@ghost ghost merged commit 76de2ae into master Jul 20, 2020
@ghost ghost deleted the dev/duhowett/wpf/v1.1 branch July 20, 2020 23:13
DHowett added a commit that referenced this pull request Jul 20, 2020
* send alt/F10 through the control
  We were not listening for WM_SYSKEY{UP,DOWN}
* extract the actual scancode during WM_CHAR, not the bitfield
  We were accidentally sending some of the additional keypress data in with
  the character event in Win32 Input Mode
* set default fg/bg to campbell
  The WPF control starts up in PowerShell blue even though it's not typically used
  in PowerShell blue.
* don't rely on the font to determine wideness
  This is a cross-port of #2928 to the WPF control
* deterministic shutdown
  In testing, I saw a handful of crashes on teardown because we were not shutting
  down the render thread properly.
* don't pass 10 for the font weight ...
  When Cascadia Code is set, it just looks silly.
* trigger render when selection is cleared, do it under lock

Fixes #6966.

(cherry picked from commit 76de2ae)
DHowett added a commit that referenced this pull request Jul 20, 2020
* send alt/F10 through the control
  We were not listening for WM_SYSKEY{UP,DOWN}
* extract the actual scancode during WM_CHAR, not the bitfield
  We were accidentally sending some of the additional keypress data in with
  the character event in Win32 Input Mode
* set default fg/bg to campbell
  The WPF control starts up in PowerShell blue even though it's not typically used
  in PowerShell blue.
* don't rely on the font to determine wideness
  This is a cross-port of #2928 to the WPF control
* deterministic shutdown
  In testing, I saw a handful of crashes on teardown because we were not shutting
  down the render thread properly.
* don't pass 10 for the font weight ...
  When Cascadia Code is set, it just looks silly.
* trigger render when selection is cleared, do it under lock

Fixes #6966.

(cherry picked from commit 76de2ae)
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-WPFControl Things related to the WPF version of the TermControl AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-1 A description (P1) Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wpf: selection invalidation on keypress doesn't properly invalidate selection w/ renderer
3 participants