KeyboardLayoutMap Class

The keyboard layout of the device (https://wicg.github.io/keyboard-map/#keyboardlayoutmap-interface), returned by navigator.keyboard.getLayoutMap(): the key value produced without modifier by each writing system key, by code value (e.g. KeyQ is a on an AZERTY keyboard).

Implements

Properties

NameDescription
CountGets the number of keys of the layout.

Gets the number of keys of the layout.

public int Count { get; }

Property value

int

Methods

NameDescription
Get(string)Returns the key value produced by a key, or null when the key is not in the layout.
GetEnumerator()Enumerates the keys and their values, in the order of the writing system keys of the specification.
Has(string)Returns whether a key is in the layout.
System.Collections.IEnumerable.GetEnumerator()

Get(string)

KeyboardMap.cs

Returns the key value produced by a key, or null when the key is not in the layout.

public string? Get(string code)

Parameters

code string
The code value of the key, such as KeyQ.

Returns

string?

GetEnumerator()

KeyboardMap.cs

Enumerates the keys and their values, in the order of the writing system keys of the specification.

public IEnumerator<KeyValuePair<string, string>> GetEnumerator()

Has(string)

KeyboardMap.cs

Returns whether a key is in the layout.

public bool Has(string code)

Parameters

code string
The code value of the key, such as KeyQ.

Returns

bool

System.Collections.IEnumerable.GetEnumerator()

KeyboardMap.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.