Add more possible locations for extra keys

Avoid dropping some keys on crowded layouts.
This commit is contained in:
Jules Aguillon 2022-09-24 15:19:45 +02:00
parent a365fdc6a3
commit 5811643562

View File

@ -40,6 +40,12 @@ class KeyboardData
addExtraKeys_to_row(rows, k, 1, 3);
addExtraKeys_to_row(rows, k, 2, 2);
addExtraKeys_to_row(rows, k, 2, 1);
if (k.hasNext())
{
for (int r = 0; r < rows.size(); r++)
for (int c = 1; c <= 4; c++)
addExtraKeys_to_row(rows, k, r, c);
}
return new KeyboardData(rows, keysWidth, extra_keys);
}