microsoft / microsoft/microsoft-ui-xaml
Expand the method that InputKeyboardSource can be obtained through HWND
- Dominant language
- C++
- Stars
- 8.4k
- Forks
- 942
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 105
Description
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。
##### -----------------------------------------


##### -----------------------------------------
Reference links(参考链接)
https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource?view=windows-app-sdk-1.6
Contributor guide
Research direction
Start with the InputKeyboardSource API reference linked in the issue and compare it with the current ContentIsland-based acquisition path. The requested result is a GetForWindowId() method that allows InputKeyboardSource to be obtained for HWND-backed windows outside WinUI 3.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- api, desktop
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100