Hi,
I am trying to add popup keys to a user defined layer. I can add both user defined (T_xx) and system defined (K_xx) popup keys to the default layer. However when I use the same procedure to add popup keys to a layer defined by me, the key does not get displayed and the layer just changes to the default layer. I have attached a minimal keyboard layout with the keyboard definitions to illustrate my problem. In this touch keyboard the pop-ups in the default layer works as intended, but not so with the layer named “test”
Keyboard definition
store(&VERSION) ‘9.0’
store(&NAME) ‘Test Keyboard’
store(&TARGETS) ‘any windows’
store(ÐNOLOGUECODE) ‘sin’
store(©RIGHT) ‘tester’
store(&KEYBOARDVERSION) ‘1.00’
store(&LANGUAGE) ‘x045B’
store(&WINDOWSLANGUAGES) ‘x045B’
store(&LAYOUTFILE) ‘Untitled-layout.js’
begin Unicode > use(main)
group(main) using keys
- [T_A] >“A”
- [T_L] >“L”
Keyboard Layout
{
“tablet”: {
“font”: “Tahoma”,
“layer”: [
{
“id”: “default”,
“row”: [
{
“id”: 1,
“key”: [
{
“id”: “K_Q”,
“text”: “q”,
“sk”: [
{
“text”: “@”,
“id”: “K_SLASH”,
“layer”: “shift”
},
{
“text”: “A”,
“id”: “T_A”
}
]
},
{
“id”: “K_P”,
“text”: “p”,
“sk”: [
{
“text”: “P”,
“id”: “K_P”,
“layer”: “shift”
}
]
},
{
“id”: “K_BKSP”,
“text”: “BkSp”
}
]
},
{
“id”: 2,
“key”: [
{
“id”: “K_NUMLOCK”,
“text”: “test”,
“width”: “140”,
“sp”: “1”,
“nextlayer”: “test”
},
{
“id”: “K_LOPT”,
“text”: “Menu”,
“width”: “120”,
“sp”: “1”
},
{
“id”: “K_SPACE”,
“text”: “”,
“width”: “630”,
“sp”: “0”
},
{
“id”: “K_ENTER”,
“text”: “Enter”,
“width”: “140”,
“sp”: “1”
}
]
}
]
},
{
“id”: “test”,
“row”: [
{
“id”: 1,
“key”: [
{
“id”: “K_X”,
“text”: “X”,
“sk”: [
{
“text”: “?”,
“id”: “K_2”,
“layer”: “shift”
},
{
“text”: “L”,
“id”: “T_L”
}
]
},
{
“id”: “K_Y”,
“text”: “Y”
},
{
“id”: “K_BKSP”,
“text”: “BkSp”
}
]
},
{
“id”: 2,
“key”: [
{
“id”: “K_LOWER”,
“text”: “abc”,
“width”: “140”,
“sp”: “1”,
“nextlayer”: “default”
},
{
“id”: “K_LOPT”,
“text”: “Menu”,
“width”: “120”,
“sp”: “1”
},
{
“id”: “K_SPACE”,
“text”: “”,
“width”: “630”,
“sp”: “0”
},
{
“id”: “K_ENTER”,
“text”: “Enter”,
“width”: “140”,
“sp”: “1”
}
]
}
]
}
]
}
}