Files
heads/boards/librem_11
Jonathon Hall ca203957dd keymaps: Generalize board keymap, ensure it always applies
Put a board's keymap at /etc/board_keys.map and support it in the
normal logic, instead of with ad-hoc logic in the board init.

Whenever loading a new keymap, reset the current keymap first, and load
the board's override last (if there is one).  This way, the result is
always the same even if the new keymap does not define all keys, and
the board's overridden keys stay overridden.

Use the actual kernel default instead of us.map (which is different,
but possibly not in any way anyone would care about).

Remove some redundant loads of the current keymap when canceling.  We
already restore the current keymap any time a change was made that was
rejected.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
2025-05-02 17:42:56 -04:00
..