Hi !

When you modify the grub keymap (I use an AZERTY one), the numeric keypad does not work properly because its keys are remapped.

To get the proper behavior, I added two lines to 'remap_ascii_char:' in asm.S at the begining:

--------------------------------------
remap_ascii_char:
pushw %si

/* if key code > 55 , not ascii so don't remap */
cmpb $55, %bh
jg dont_remap

movw $ABS(EXT_C(ascii_key_map)), %si
1:
lodsw
/* check if this is the end */
testw %ax, %ax
jz 2f
/* check if this matches the ascii code */
cmpb %al, %bl
jne 1b
/* if so, perform the mapping */
movb %ah, %bl
2:
dont_remap:
/* restore %si */
popw %si

ret
------------------------------------------

Please, check that the 2 lines are correct since I'm not an asm specialist.


Cheers,
--
Ludovic DROLEZ Free&ALter Soft
152, rue de Grigy - Technopole Metz 2000 57070 METZ
tel : 03 87 75 55 21 fax : 03 87 75 19 26



_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub

Reply via email to