diff options
author | Richard M. Stallman <[email protected]> | 1995-11-22 10:47:09 +0000 |
---|---|---|
committer | Richard M. Stallman <[email protected]> | 1995-11-22 10:47:09 +0000 |
commit | ef1bfd8f7102bca1947caf06ec22b1b17ed46152 (patch) | |
tree | c43caf9d85b5ac250692bc71f677734e0ec3f524 | |
parent | c7ce28cedd2c3ce0dd4f7551e45532a20036b824 (diff) |
(dos_set_keyboard): If CODE is not recognized,
initialize to the US keyboard table.
-rw-r--r-- | src/msdos.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/msdos.c b/src/msdos.c index f3a1e1da12..35c46d9904 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -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) { |