mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-24 08:37:42 +00:00
fix(developer): error when rescaling touch layout editor keys
Fixes #10194.
This commit is contained in:
parent
61a0155435
commit
39a53d439a
1 changed files with 1 additions and 1 deletions
|
|
@ -874,7 +874,7 @@ $(function() {
|
|||
const k = builder.selectedKey();
|
||||
const keyId = k.data('id');
|
||||
const keyItems = $('#kbd .key').filter((_index,item) => $(item).data('id') === keyId);
|
||||
const keyItemIndex = keyItems.indexOf(k.length ? k[0] : null);
|
||||
const keyItemIndex = keyItems.toArray().indexOf(k.length ? k[0] : null);
|
||||
builder.prepareLayer();
|
||||
if (keyId !== null && keyItemIndex >= 0) {
|
||||
const newKeyItems = $('#kbd .key').filter((_index,item) => $(item).data('id') === keyId);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue