Liste des keycodes hid en decimal, pour les placer rapidement sur l’UI :

Explication sur les keycodes : https://discord.com/channels/895297925578637362/898165477145194576/1135582613176860754

Let’s take src/api/keymap/db/digits.js for an example.

Look for number 1.

code: 30,
labels: {
  primary: "1",
},

What base (offset) do shift have? It got 2048.

# This don't exist, just an example
withModifiers(DigitTable, "Shift +", "Digit", 2048),

2048+30 (where 30 is the actual keycode) = 2078

code: 2078,
labels: {
  primary: "!",
},
function withModifiers(table, groupName, top, base) {
  return {
    groupName,
    keys: table.keys.map(key => ({
      code: key.code + base,
      labels: {
        top,
        primary: key.labels.primary,
      },
    })),
  };
}

Reference keycodes

ENa.json

List of group names

  • Blank
  • Digits
  • Shifted Digits
  • Fx keys
  • Lock layer to
  • Shift to layer
  • Move to layer
  • Leader
  • LED Effect
  • Letters
  • Macros
  • Media
  • Miscellaneous
  • Modifiers
  • Hyper & Meh
  • Mouse movement
  • Mouse wheel
  • Mouse button
  • Mouse warp
  • Navigation
  • Numpad
  • OneShot modifiers
  • OneShot layers
  • Punctuation
  • Shifted Punctuation
  • SpaceCadet
  • Spacing
  • Steno
  • SuperKeys
  • TapDance
  • Battery
  • Bluetooth
  • Energy
  • RF