keyman
keyman copied to clipboard
bug(developer): rename and delete a layer does not remove it in the Code View of Touch Layout
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
- Open a keyboard project
- Go to Touch Layout tab
- In Design view, rename a layer from
defaulttodef - Save & Compile
- The name changed
"id": 4,
"key": [
{
"id": "K_LOWER",
"text": "*abc*",
"width": 140,
"sp": 1,
"nextlayer": "defg"
},
- Remove the
deflayer, 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:
- Add a layer
- Rename to the previously deleted name
- Rename it to something else will solve this issue.