Commit dc5b32ae authored by Anastasia Helfinstein's avatar Anastasia Helfinstein Committed by Commit Bot

[Switch Access] Allow rows with only 1 element

Previously, having a row with only 1 element threw an error. However,
in the emoji keyboard there are places where that is the most logical
grouping. Remove that check.

AX-Relnotes: n/a.
Fixed: 1127070
Change-Id: I61aa71ae20fbf3aa0015b12fceb50cf66ba271fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2406658
Commit-Queue: David Tseng <dtseng@chromium.org>
Reviewed-by: default avatarAkihiro Ota <akihiroota@chromium.org>
Cr-Commit-Position: refs/heads/master@{#806908}
parent d4840adc
......@@ -139,12 +139,6 @@ class GroupNode extends SAChildNode {
children.push(nodes[i]);
i++;
}
if (children.length <= 1) {
throw SwitchAccess.error(
SAConstants.ErrorType.ROW_TOO_SHORT,
'Cannot group row with only one element.',
true /* shouldRecover */);
}
result.push(new GroupNode(children));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment