open class KeyData

Describes the character mappings associated with a key.

Summary

Constants
static Int
Public constructors

KeyData()

Properties
Char

The display label (see getDisplayLabel).

CharArray!

The character that will be generated in various meta states (the same ones used for get and defined as KeyEvent.META_SHIFT_ON and KeyEvent.META_ALT_ON).

Char

The "number" value (see getNumber).

Constants

META_LENGTH

static val META_LENGTH: Int

Deprecated: Deprecated in Java.

Value: 4

Public constructors

Properties

displayLabel

var displayLabel: Char

Deprecated: Deprecated in Java.

The display label (see getDisplayLabel).

number

var number: Char

Deprecated: Deprecated in Java.

The "number" value (see getNumber).

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-02-26 UTC.