mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 00:15:45 +01:00
Better option validation messages for the more confusing validators.
This commit is contained in:
@@ -1072,7 +1072,8 @@ const Hints = Module("hints", {
|
||||
["asdfg;lkjh", "Home Row"]],
|
||||
validator: function (value) {
|
||||
let values = events.fromString(value).map(events.closure.toString);
|
||||
return array.uniq(values).length === values.length;
|
||||
return Option.validIf(array.uniq(values).length === values.length,
|
||||
"Duplicate keys not allowed")
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user