mirror of
https://github.com/ipxe/ipxe
synced 2025-12-09 02:40:27 +03:00
[console] Ensure that all ASCII characters are reachable in all keymaps
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -381,6 +381,12 @@ class Keymap:
|
||||
if source.isprintable()
|
||||
and target
|
||||
and target in unreachable}
|
||||
# Check that all characters are now reachable
|
||||
unreachable -= set(table.values())
|
||||
if unreachable:
|
||||
raise ValueError("Unreachable characters: %s" % ', '.join(
|
||||
KeymapKeys.ascii_name(x) for x in sorted(unreachable)
|
||||
))
|
||||
return KeymapKeys(dict(sorted(table.items())))
|
||||
|
||||
def cname(self, suffix: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user