Apologies if I'm missing something obvious, but should
alter_to_native_keymap() not revert all of the changes made by
alter_to_debian_keymap() rather than just a couple of them?
It should generate the same sequences as before,
but it does not have use the same way for it.
The us.iso.kbd have by default
014 bs bs del del bs bs del del O
083 del '.' '.' '.' '.' '.' boot boot N
103 fkey61 fkey61 fkey61 fkey61 fkey61 fkey61 boot fkey61 O
and fkey61 generates del.
[...]
After alter_to_native_keymap(), there is
014 bs bs del del bs bs del del O
083 fkey61 '.' '.' '.' '.' '.' boot boot N
103 fkey61 fkey61 fkey61 fkey61 fkey61 fkey61 boot fkey61 O
and fkey61 generates del.
The keymap is not the same, but it still generates del for scan code 083.
Hrm, okay... What about the changes for codes 211 and 231?