HardwareSimulationUS_KeyboardLayoutHandleSpecialKey Method

This method is used to add custom handling for SpecialKey's and their combinations.

Definition

Namespace: BeeMobile.VirtualKeyboard.Layouts
Assembly: BeeMobile.VirtualKeyboard.AVA.NET6 (in BeeMobile.VirtualKeyboard.AVA.NET6.dll) Version: 11.0.0.2+aef809e856abb10e94d0b4c45f10d1805addc36e
C#
public override string? HandleSpecialKey(
	KeyModifiers activeModifiers,
	Key key,
	ClickMode click,
	IInputElement? inputElement
)

Parameters

activeModifiers  KeyModifiers
Currently pressed modifier keys.
key  Key
The special key that was pressed.
click  ClickMode
Determines when the special handling should occur.
inputElement  IInputElement

[Missing <param name="inputElement"/> documentation for "M:BeeMobile.VirtualKeyboard.Layouts.HardwareSimulationUS_KeyboardLayout.HandleSpecialKey(Avalonia.Input.KeyModifiers,Avalonia.Input.Key,Avalonia.Controls.ClickMode,Avalonia.Input.IInputElement)"]

Return Value

String
If the combination should produce TextInput (eg. shift + a => A) you can return a string and it will be processed by the Keyboard. Otherwise return null.

Remarks

This method is called by the Keyboard when a Key is pressed which has the SpecialKey property set.

See Also