diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-11-22 10:47:09 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-11-22 10:47:09 +0000 |
commit | 37489bd6977c578e7d42e0592e23affde29e75aa (patch) | |
tree | 762ed02bacb9c497f1774753c6e902c1d3c85413 /src/msdos.c | |
parent | 674f87ba24845238853dbb78fd06f79b5f3abb30 (diff) | |
download | emacs-37489bd6977c578e7d42e0592e23affde29e75aa.tar.gz |
(dos_set_keyboard): If CODE is not recognized,
initialize to the US keyboard table.
Diffstat (limited to 'src/msdos.c')
-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 f3a1e1da12d..35c46d99044 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) { |