mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 08:42:29 +02:00
Assert hintkeys.length > 1.
This commit is contained in:
1 parent
e415ae09a4
commit
43c2b280c0
1 file changed
+1
-1
@@ -1267,7 +1267,7 @@ var Hints = Module("hints", {
|
||||
},
|
||||
validator: function (value) {
|
||||
let values = events.fromString(value).map(events.closure.toString);
|
||||
return Option.validIf(array.uniq(values).length === values.length,
|
||||
return Option.validIf(array.uniq(values).length === values.length && values.length > 1,
|
||||
_("option.hintkeys.duplicate"));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user