blockly > ShortcutRegistry > createSerializedKey
KısayolRegistry.createSerializedKey() yöntemi
Tuş eşlemede kullanılacak serileştirilmiş anahtar kodunu oluşturur.
İmza:
createSerializedKey(keyCode: number, modifiers: KeyCodes[] | null): string;
Parametreler
Parametre |
Tür |
Açıklama |
keyCode |
sayı |
Anahtarı temsil eden sayı kodu. |
değiştiriciler |
KeyCodes[] | boş |
Tuşla kullanılacak değiştirici tuş kodlarının listesi. Geçerli değiştiricilerin tümü, KısayolRegistry.modifierKeys içinde bulunabilir. |
Şunu döndürür:
dize
Belirli değiştiriciler ve anahtar için serileştirilmiş anahtar kodu.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-10-11 UTC.
[null,null,["Son güncelleme tarihi: 2024-10-11 UTC."],[[["The `ShortcutRegistry.createSerializedKey()` method generates a serialized key code for key mapping, using a key code and optional modifier keys."],["It accepts the key code as a number and an optional array of modifier key codes, returning the serialized key code as a string."],["The serialized key code combines the key code with its modifiers for efficient storage and lookup in the key map."]]],[]]