Skip to content

Commit ed4e359

Browse files
authored
Add a reference to the WinUI replacement
1 parent 4cbb408 commit ed4e359

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

windows.ui.core/corewindow_getkeystate_1676715341.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@ The flags indicating the current state of the supplied virtual key when the inpu
2222
> [!NOTE]
2323
> All keys support the **Locked** state (not just the standard Caps Lock and Num Lock keys).
2424
25+
> [!NOTE]
26+
> For WinUI 3 apps, this method will return null. Use [**InputKeyboardSource.GetKeyStateForCurrentThread**](/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource.getkeystateforcurrentthread) instead. See [Windows Runtime APIs not supported in desktop apps](/windows/apps/desktop/modernize/desktop-to-uwp-supported-api).
27+
2528
## -remarks
2629

2730
## -examples
2831

2932
## -see-also
30-
[CoreVirtualKeyStates](corevirtualkeystates.md), [GetAsyncKeyState](corewindow_getasynckeystate_1621551046.md)
33+
34+
* [CoreVirtualKeyStates](corevirtualkeystates.md)
35+
* [GetAsyncKeyState](corewindow_getasynckeystate_1621551046.md)
36+
* [InputKeyboardSource.GetKeyStateForCurrentThread](/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource.getkeystateforcurrentthread)

0 commit comments

Comments
 (0)