Skip to content

Commit

Permalink
feat: Add internal support for InputKeyboardSource on Uwp
Browse files Browse the repository at this point in the history
  • Loading branch information
morning4coffe-dev committed Oct 27, 2023
1 parent fe66f07 commit 187a1cb
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/Uno.UI/Microsoft/UI/Input/InputKeyboardSource.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#if HAS_UNO_WINUI
namespace Microsoft.UI.Input;

namespace Microsoft.UI.Input
public partial class InputKeyboardSource
{
public partial class InputKeyboardSource
{
public static Windows.UI.Core.CoreVirtualKeyStates GetKeyStateForCurrentThread(Windows.System.VirtualKey virtualKey)
=> Xaml.Window.Current.CoreWindow.GetKeyState(virtualKey);
}
}
#if HAS_UNO_WINUI
public
#else
internal
#endif
static Windows.UI.Core.CoreVirtualKeyStates GetKeyStateForCurrentThread(Windows.System.VirtualKey virtualKey)
=> Windows.UI.Xaml.Window.Current.CoreWindow.GetKeyState(virtualKey);
}

0 comments on commit 187a1cb

Please sign in to comment.