.NET MAUI自定义输入按键活动处理
有没有办法捕获.NET MAUI中的自定义输入控件的按键事件?例如,如果我有课程:
public class MyEntry : Entry
{
}
例如,我想每次用户在输入/聚焦条目时按他的关键字上的选项卡键执行操作。
Is there a way to capture keypress event for a custom entry control in .Net Maui? for example if i have the class:
public class MyEntry : Entry
{
}
And I want to perform an action everytime a user for example presses the tab key on his keyword while he is typing/focusing the entry.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您可以使用
条目
识别的字符,则可以对您有用。如果您在键盘上按键的键具有其他含义,而这些键 都不被认为是字符。
If you can use a character which is recognized by the
Entry
, this could work for you.This won't work if the key you press on your keyboard has some other meaning which is not recognized as a character to write inside the
Entry
.