KeyboardLayoutHandleSpecialKey Method

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

Definition

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

Parameters

activeModifiers  KeyModifiers
Currently pressed modifier keys.
key  Key
The special key that was pressed.
click  ClickMode
Determines when the special handling should occur.
focusedElement  IInputElement  (Optional)
The currently focused element.

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