abouttreesummaryrefslogcommitdiff
path: root/srcs
diff options
context:
space:
mode:
Diffstat (limited to 'srcs')
-rw-r--r--srcs/juloo.keyboard2/KeyboardData.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/srcs/juloo.keyboard2/KeyboardData.java b/srcs/juloo.keyboard2/KeyboardData.java
index aaff31d..bd9296e 100644
--- a/srcs/juloo.keyboard2/KeyboardData.java
+++ b/srcs/juloo.keyboard2/KeyboardData.java
@@ -71,13 +71,15 @@ public final class KeyboardData
KeyPos next_to_pos = getKeys().get(pos.next_to);
// Use preferred direction if some preferred pos match
if (next_to_pos != null)
+ {
for (KeyPos p : pos.positions)
if ((p.row == -1 || p.row == next_to_pos.row)
&& (p.col == -1 || p.col == next_to_pos.col)
&& add_key_to_pos(rows, kv, next_to_pos.with_dir(p.dir)))
return true;
- if (add_key_to_pos(rows, kv, next_to_pos.with_dir(-1)))
- return true;
+ if (add_key_to_pos(rows, kv, next_to_pos.with_dir(-1)))
+ return true;
+ }
}
for (KeyPos p : pos.positions)
if (add_key_to_pos(rows, kv, p))