Skip to content

Commit

Permalink
fix: do not set zero-width non-clickable key with default width
Browse files Browse the repository at this point in the history
  • Loading branch information
goofyz authored and WhiredPlanck committed Jan 25, 2024
1 parent 5c2f39a commit af4023c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class KeyboardSizeCalculator(
for (mk in lm) {
val weight = obtainFloat(mk, "width", 0f)
val keyWidthWeight =
if (weight == 0f) {
if (weight == 0f && mk.contains("click")) {
keyboardKeyWidth
} else {
weight
Expand Down

0 comments on commit af4023c

Please sign in to comment.