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

Expand the method that InputKeyboardSource can be obtained through HWND #4958

Open
Gaoyifei1011 opened this issue Dec 12, 2024 · 0 comments
Open

Comments

@Gaoyifei1011
Copy link

Expand the method that InputKeyboardSource can be obtained through HWND
请扩展 InputKeyboardSource 可以通过窗口 HWND 获取的方法

-----------------------------------------

At present, InputKeyboardSource class can only be obtained by ContentIsland method, which means that this class can only be used in WinUI 3 framework. However, most methods of this class are applicable to other non-WinUI 3 Windows, so I hope to extend this class. Add InputKeyboardSource. GetForWindowId () method, using InputKeyboardSource allow other window.
目前 InputKeyboardSource 类只能通过 ContentIsland 方法获取,这也就是说,该类仅能在 WinUI 3 框架中使用,然而该类的大部分方法适用于其他非 WinUI 3 窗口,所以希望能扩展该类,添加 InputKeyboardSource.GetForWindowId() 方法,允许其他窗口使用 InputKeyboardSource。

-----------------------------------------

Image
Image

-----------------------------------------

Reference links(参考链接)
https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource?view=windows-app-sdk-1.6

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