Skip to content

Conversation

Blinue
Copy link
Owner

@Blinue Blinue commented May 19, 2025

Close #1070

移植自 microsoft/terminal#18854 ,增加了撤销和重做的功能。

当一个线程中创建了多个 XAML Islands 窗口,默认的右键菜单会导致崩溃,因此我们创建自定义右键菜单来绕过这个问题。我还尝试过其他方案(如 MUXC::TextCommandBarFlyout),但都不尽人意。

@Blinue Blinue added bug Something isn't working area: UI labels May 19, 2025
@apkipa
Copy link

apkipa commented May 19, 2025

TextCommandBarFlyout 有什么潜在问题吗?我在自己的项目中使用过,当时是能够解决崩溃问题的。

@Blinue
Copy link
Owner Author

Blinue commented May 19, 2025

我观察到几个小问题

  1. Win10 中会导致弹窗背景变成纯白色
    image
  2. 打开菜单的情况下关闭窗口会崩溃
  3. 不支持改语言

@Blinue Blinue merged commit 0df390c into dev May 19, 2025
4 checks passed
@Blinue Blinue deleted the fix/context-menu-crash branch May 19, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: UI bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

文本框中右键可能导致崩溃
2 participants