Commit ef1bfd8f authored by Richard M. Stallman's avatar Richard M. Stallman

(dos_set_keyboard): If CODE is not recognized,

initialize to the US keyboard table.
parent c7ce28ce
......@@ -802,6 +802,12 @@ dos_set_keyboard (code, always)
int always;
{
int i;
/* Initialize to US settings, for countries that don't have their own. */
keyboard = keyboard_layout_list[0].keyboard_map;
keyboard_map_all = always;
dos_keyboard_layout = 1;
for (i = 0; i < (sizeof (keyboard_layout_list)/sizeof (struct keyboard_layout_list)); i++)
if (code == keyboard_layout_list[i].country_code)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment