>>>>> Stas Sergeev writes:

 Stas> But in fact this means that the problem is still there.  The
 Stas> problem is that normally altgr map is similar to the alt map,
 Stas> so the special keycodes in it are mapped as for the alt map.
 Stas> But you are reserving altgr map for Cyrillic, so it must be
 Stas> treated as a plain map.  

        Maybe having separate keymaps would be more correctly. As for
        non-unicode keymaps.

 Stas> This patch also fixes some other small problems with ctrl and
 Stas> alt modifiers in cyrillic mode.  

        I think this is needed too.

--- serv_xlat.c.orig    Fri Apr 26 14:58:38 2002
+++ serv_xlat.c Fri Apr 26 15:12:22 2002
@@ -705,8 +705,8 @@
        init_charset_keymap(charset, map->shift, MODIFIER_SHIFT); 
        init_charset_keymap(charset, map->ctrl, MODIFIER_CTRL);
        init_charset_keymap(charset, map->alt, MODIFIER_ALT);
-       init_charset_keymap(charset, map->altgr, MODIFIER_ALTGR);
-       init_charset_keymap(charset, map->shift_altgr, MODIFIER_SHIFT | 
MODIFIER_ALTGR);
+       init_charset_keymap(charset, map->altgr, 0);
+       init_charset_keymap(charset, map->shift_altgr, MODIFIER_SHIFT);
        init_charset_keymap(charset, map->ctrl_alt, MODIFIER_CTRL | MODIFIER_ALT);

        or better this

--- serv_xlat.c.orig    Fri Apr 26 14:58:38 2002
+++ serv_xlat.c Fri Apr 26 15:12:22 2002
@@ -1707,7 +1709,7 @@
        struct key_pressed_state *keys = &state->keys_pressed;
 
        /* altgr implies alt */
-       if (desired & MODIFIER_ALTGR)   desired |= MODIFIER_ALT;
+//     if (desired & MODIFIER_ALTGR)   desired |= MODIFIER_ALT;
 
        /* To keep some bits constant copy them from state->shiftstate into 
         * desired.

 Stas> Does this look like a correct fix to you?  

        Quite correct I think.

 Stas> And of course the root of the problem seems to be that dosemu
 Stas> currently doesn't natively support the layout switching.

-- 
  Sergey Suleymanov

-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to