keyman icon indicating copy to clipboard operation
keyman copied to clipboard

bug(developer): rename and delete a layer does not remove it in the Code View of Touch Layout

Open Meng-Heng opened this issue 1 month ago • 0 comments

Describe the bug

There's no error, only warnings:

xyz.kmn - warn KM02091: Key "K_SHIFT" on platform "phone", layer "shift" (row:3 col:1), references a missing layer "def"
xyz.kmn - warn KM02091: Key "K_LOWER" on platform "phone", layer "numeric" (row:4 col:1), references a missing layer "def"

Once unchecked the "Treat compiler hints and warnings as errors", the project runs fine.

Reproduce the bug

  1. Open a keyboard project
  2. Go to Touch Layout tab
  3. In Design view, rename a layer from default to def
  4. Save & Compile
  5. The name changed
"id": 4,
            "key": [
              {
                "id": "K_LOWER",
                "text": "*abc*",
                "width": 140,
                "sp": 1,
                "nextlayer": "defg"
              },
  1. Remove the def layer, the name remains in the Code view

Expected behavior

the layer name should be removed in both views.

Related issues

#15188

Keyman apps

  • [ ] Keyman for Android
  • [ ] Keyman for iPhone and iPad
  • [ ] Keyman for Linux
  • [ ] Keyman for macOS
  • [ ] Keyman for Windows
  • [x] Keyman Developer
  • [ ] KeymanWeb
  • [ ] Other - give details at bottom of form

Keyman version

19.0.174

Operating system

Windows 11 Parallels

Device

macOS

Target application

No response

Browser

No response

Keyboard name

#15215

Keyboard version

No response

Language name

No response

Additional context

How to workaround this issue:

  1. Add a layer
  2. Rename to the previously deleted name
  3. Rename it to something else will solve this issue.

Meng-Heng avatar Dec 11 '25 07:12 Meng-Heng