]> git.eshelyaron.com Git - emacs.git/commitdiff
(dos_set_keyboard): If CODE is not recognized,
authorRichard M. Stallman <rms@gnu.org>
Wed, 22 Nov 1995 10:47:09 +0000 (10:47 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 22 Nov 1995 10:47:09 +0000 (10:47 +0000)
initialize to the US keyboard table.

src/msdos.c

index f3a1e1da12dee72525c803ad32be8ddd1136485e..35c46d99044d31853179a1fe868a3582a1ecd05b 100644 (file)
@@ -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)
       {