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

[Bug Report]: MTextField OnKeyPress事件在MAUI + macos 上不触发 #1464

Closed
williamlee1982 opened this issue Jul 31, 2023 · 3 comments
Closed

Comments

@williamlee1982
Copy link

williamlee1982 commented Jul 31, 2023

Masa.Blazor version

1.0.1

Describe the bug

MTextField 的 OnKeyPress 事件在其他平台下没有问题,但在 macos 加 MAUI 模式下不会被触发。以下是最简单的测试代码:


<MTextField TValue="string" OnKeyDown="(e) => keyDown(e)"></MTextField>

@code {

private void keyDown(KeyboardEventArgs e)
{
    Console.WriteLine(e.Code);
}

}

Expected Behavior

希望正常触发事件

Steps To Reproduce

No response

Reproduction code

No response

.NET version

7.0.306

What browsers are you seeing the problem on?

No response

Additional context

No response

@williamlee1982
Copy link
Author

请问有什么进展吗?这应该是一个 100%复现的问题

@capdiem
Copy link
Contributor

capdiem commented Aug 1, 2023

@williamlee1982 恐怕MAUI Blazor的BUG dotnet/maui#13934

@williamlee1982
Copy link
Author

@williamlee1982 恐怕MAUI Blazor的BUG dotnet/maui#13934

Apple真是搞笑了,这么久的 bug 不去解决。这导致 MAUI Blazor 在 MAC 上直接无法用于生产了,按键事件都无法响应还做什么呢

@capdiem capdiem closed this as not planned Won't fix, can't repro, duplicate, stale Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants