View Full Version : BUG? e_Key returns wrong value
SonG0han
01-24-2008, 07:16 AM
Hi! I wanted to show a combobox with options if someone enters "/" in the input field.
the manual says / is the code 191 or 111 for the numpad /. But if you use 111 it does not trigger, instead it just returns 55 which is the code for the key "7" (you use SHIFT+7 for the /). But it should return the code 111 if you enter a "/", right? :huh
longedge
01-24-2008, 08:04 AM
I am currently on Ver6 but e_Key returns the correct values i.e. 111 and 191 here. You haven't got some sort of alternative keyboard driver or mapping have you?
Darryl
01-24-2008, 09:15 AM
Yes, it returned the correct values 191 and 111 for me as well, but in version 7.0.
Is there anything unique about your system?
SonG0han
01-24-2008, 09:34 AM
hmm I use Win XP SP2 with Bootcamp on my iMac and use the apple keyboard. all other keys seem to work but the "/" returns the code of the 7. The numpad-/ works.
I used this as workaround:
if (e_Key == 55 and e_Modifiers.shift == true) or e_Key == 111 then
and it seems to work. Will this work if / returns 191 or should I add it?
Darryl
01-24-2008, 09:40 AM
Yes, I would add the 191 as well so it works for both the numpad and regular keyboard character.
SonG0han
01-24-2008, 09:44 AM
Ok, thanks. :)
Don't know why it returns the wrong value but I used the Apple Drivers on the Leopard DVD for WinXP (Bootcamp).
/EDIT: the same applies for ;, instead of 186 it returns 188 (,).
SonG0han
01-30-2008, 04:55 AM
Found another one: the e_Key for the key "ü" is the same as ";" - is this the same for all German Keybords or is this just an issue with Bootcamp and the Apple Keyboard?
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.