[ros-kernel] [reactos] AltGr fench keyboard patch (one more)

jeanmichel.123 at free.fr jeanmichel.123 at free.fr
Mon Nov 10 15:03:46 CET 2003


This is a partial correction of kbdfr.
This is a partial correction of bug 52.

Corrected keys are:
[AltGr] + [ç9][)°][=+] => '^',']','}'


I did not test 
[AltGr] + [é2][è7] => '~','`'
because they are dead keys, and currently, my dead keys do not work.

The keypad is not working for digit 0,1-9, but for other kays.

0,1-9 keys are in a special table (does not this come from the kbdus?),
and this table doe not work.
[/][*][-][+] keys are in the same tables than the whole keyboard, so, tey work.

__________________________
pieces of kbdfr code :
__________________________
ROSDATA VK_TO_WCHARS1 keypad_numbers[] = {
  { VK_NUMPAD0, 0, '0' },
  { VK_NUMPAD1, 0, '1' },
  { VK_NUMPAD2, 0, '2' },
.....
  { VK_NUMPAD9, 0, '9' },
  { VK_BACK,    0, '\010' },
  { 0,0 }
};
__________________________
ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table[] = {
  vk_master(1,keypad_numbers),
  vk_master(2,key_to_chars_2mod),
  vk_master(3,key_to_chars_3mod),
  vk_master(4,key_to_chars_4mod),
  vk_master(5,key_to_chars_5mod),
  { 0,0,0 }
};
__________________________
However I did not study yet, the dynamic of this piece of code.
-------------- next part --------------
Index: kbdfr.c
===================================================================
RCS file: /CVS/ReactOS/reactos/lib/kbdfr/kbdfr.c,v
retrieving revision 1.2
diff -d -u -r1.2 kbdfr.c
--- kbdfr.c	7 Nov 2003 18:55:50 -0000	1.2
+++ kbdfr.c	10 Nov 2003 13:54:33 -0000
@@ -240,7 +240,6 @@
 
   /* Specials */
   /* Ctrl-_ generates US */
-  { VK_OEM_PLUS    ,NOCAPS, '=', '+' },
   //{ VK_OEM_1       ,NOCAPS, '$', '£' },
   { VK_OEM_5       ,NOCAPS, '*',L'µ'},
   { VK_OEM_3       ,NOCAPS, L'ù', '%' },
@@ -280,7 +279,8 @@
   { '0' , 1  ,  L'à', '0', WCH_NONE , '@' },
   { 'E' , 1  ,  'e', 'E', WCH_NONE , L'€' /* euro */ },
   { VK_OEM_1 ,1, '$', L'£' ,WCH_NONE, L'¤' },
-  { VK_OEM_4, NOCAPS, ')', '°', ']'  },
+  { VK_OEM_PLUS    ,NOCAPS, '=', '+' ,WCH_NONE, L'}' },
+  { VK_OEM_4, NOCAPS, ')', '°', WCH_NONE, ']'  },
   { 0, 0 }
 };
 
@@ -294,8 +294,8 @@
   { '5' , 1  ,  '(', '5', WCH_NONE , '[' , 0x1b  },
   { '6' , 1  ,  '-', '6', WCH_NONE , '|' , 0x1f  },
   { '8' , 1  ,  '_', '8', WCH_NONE , '\\' , 0x1c  },
-  { '9' , 1  ,  L'ç', '9', WCH_NONE , WCH_DEAD , 0x1e},
-  { VK_EMPTY , 0  ,  WCH_NONE, WCH_NONE, WCH_NONE , L'^' ,WCH_NONE },
+  { '9' , 1  ,  L'ç', '9', WCH_NONE , L'^' , 0x1e},
+//  { VK_EMPTY , 0  ,  WCH_NONE, WCH_NONE, WCH_NONE , L'^' ,WCH_NONE },
   { 0, 0 }
 };
 


More information about the Ros-kernel mailing list