mirror of
https://github.com/ipxe/ipxe
synced 2026-02-28 03:11:18 +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()
|
if source.isprintable()
|
||||||
and target
|
and target
|
||||||
and target in unreachable}
|
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())))
|
return KeymapKeys(dict(sorted(table.items())))
|
||||||
|
|
||||||
def cname(self, suffix: str) -> str:
|
def cname(self, suffix: str) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user