Class InputLanguageChangedEventArgs
This event is triggered when the input language is changed. This can change the keyboard layout. When this event occurs the values from GetKeyFromScancode(Scancode) and GetScancodeFromKey(Key) are updated to reflect the new layout keyboard layout.
Inherited Members
Namespace: OpenTK.Core.Platform
Assembly: OpenTK.Core.dll
Syntax
public class InputLanguageChangedEventArgs : EventArgs
Constructors
InputLanguageChangedEventArgs(string, string, string, string)
Initializes a new instance of the InputLanguageChangedEventArgs class.
Declaration
public InputLanguageChangedEventArgs(string keyboardLayout, string keyboardLayoutDisplayName, string inputLanguage, string inputLanguageDisplayName)
Parameters
Type | Name | Description |
---|---|---|
string | keyboardLayout | The keyboard layout name of the new layout. |
string | keyboardLayoutDisplayName | The user facing keyboard layout name of the new layout. |
string | inputLanguage | The input language name of the new language. |
string | inputLanguageDisplayName | The user facing input language of the new language. |
Properties
InputLanguage
The input language. This is separate from keyboard layout. This could be used for features such as spell checking.
FIXME: In what fromat should the input language be sent in?.
Declaration
public string InputLanguage { get; }
Property Value
Type | Description |
---|---|
string |
InputLanguageDisplayName
Localized display name for the new input language.
Declaration
public string InputLanguageDisplayName { get; }
Property Value
Type | Description |
---|---|
string |
KeyboardLayout
The new keyboard layout. This indicates how physical keys are mapped to virtual keys. E.g. The difference between QWERTY and AZERTY.
Declaration
public string KeyboardLayout { get; }
Property Value
Type | Description |
---|---|
string |
KeyboardLayoutDisplayName
The keyboard layout display name. This is the user facing name of the keyboard layout.
Declaration
public string KeyboardLayoutDisplayName { get; }
Property Value
Type | Description |
---|---|
string |