Interface IKeyboardLayoutManager
Namespace: PoeShared.Services
Assembly: PoeShared.Native.dll
Syntax
public interface IKeyboardLayoutManager
Properties
Name | Description |
---|---|
KnownLayouts |
Methods
Name | Description |
---|---|
Activate(KeyboardLayout) | Activates layout for entire system using ActivateKeyboardLayout API. Has some bugs when trying to executed this from non-ui thread (STA or message-pump?) |
ActivateForWindow(KeyboardLayout, IWindowHandle) | Works much more reliable than ActivateKeyboardLayout |
GetCurrent() | Uses GetKeyboardLayout(), must be called from thread with message pump, otherwise it won't work as expected |
GetCurrent(IWindowHandle) | Uses GetKeyboardLayout for specified window thread, must be called from thread with message pump, otherwise it won't work as expected |
ResolveByCulture(CultureInfo) | Resolved layout by looking for layout with specific culture(e.g. en-US, en-UK) or more generic if specific was not found (e.g. en-US will match en-GB) |
ResolveByLayoutName(string) | LayoutId (NOT NAME), e.g. Russian = 00000419, English = 00000409 |