A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/de/docs/Web/API/KeyboardLayoutMap/keys below:

KeyboardLayoutMap: keys() Methode - Web-APIs

KeyboardLayoutMap: keys() Methode

Limited availability

Experimentell: Dies ist eine experimentelle Technologie
Überprüfen Sie die Browser-Kompatibilitätstabelle sorgfältig vor der Verwendung auf produktiven Webseiten.

Die keys() Methode des KeyboardLayoutMap Schnittstelle gibt ein neues Iterator-Objekt zurück, das die Schlüssel für jeden Index im KeyboardLayoutMap-Objekt enthält.

Die Methode ist ansonsten identisch mit Map.prototype.keys().

Syntax Parameter

Keine.

Rückgabewert

Ein neues Iterator-Objekt.

Beispiele

Das folgende Beispiel durchläuft jeden Keyboard-Code auf einer englischen QWERTY-Tastatur.

navigator.keyboard.getLayoutMap().then((keyboardLayoutMap) => {
  for (const code of keyboardLayoutMap.keys()) {
    console.log(`${code} keyboard code`);
  }
});
Spezifikationen Browser-Kompatibilität Siehe auch MDN-Feedback-Box War diese Übersetzung hilfreich?

Diese Seite wurde automatisch aus dem Englischen übersetzt.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4