79322704

Date: 2025-01-02 03:19:23
Score: 0.5
Natty:
Report link

2024 WinUI3

you can use below to solve

CoreWindow 另请参阅下面的实现 IInitializeWithWindow 的类部分。 请勿使用 GetKeyState 方法,而改为使用 WinUI 3 提供的 InputKeyboardSource.GetKeyStateForCurrentThread 方法。

so....

var ctrlState = InputKeyboardSource.GetKeyStateForCurrentThread(Windows.System.VirtualKey.Control);

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Shengjie Lu