And fix its obvious bugs, e.g. not checking for possible NULL pointers for the optional keyboard layout sub-tables...
34593d93