PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 24 → Enter key
Enter key
Débuté par Jeanne Sheahan, 23 aoû. 2007 11:11 - 5 réponses
Posté le 23 août 2007 - 11:11
WB10:I am developing a data entry screen, does anyone know how to enable the entry and/or arrow keys. Using controls you must tab to get to the next field and this is very awkward.

Thanks,
Jeanne
Posté le 17 décembre 2008 - 12:07
Dear Jeanne,

I am very sorry for disturbing you.
Would be so kind and inform me if you had any reply related to this topic?
I am developing in WebDev nowadays and I found similar problem unfortunately.
I would like to use arrow keys for navigation and enter key for selection on a table.

Many thanks in advance.

BR,
Aurel


Jeanne Sheahan wrote in news message <46cc82e0$1@news.pcsoft.fr>:



WB10:I am developing a data entry screen, does anyone know how to enable the entry and/or arrow keys. Using controls you must tab to get to the next field and this is very awkward.

Thanks,
Jeanne
Posté le 18 décembre 2008 - 16:06
you have to use the event Onkeypress
where you can use the following code

nKey is int = JSInfoEvent("keyCode")

IF nKey = 13 THEN
... (you code here
END

Feedback is appreciated

Greetings

Jan Kanters
Posté le 30 décembre 2008 - 10:32
Dear Jan,

Thanx a lot for your quick reply and sorry for my delay; I was not on board.
It seems to be fine and usable from my point of view.

Would you reveal where I can find these kinds of properties to use like "keyCode"?

Lucky New Year!

BR,
Aurel
Posté le 30 décembre 2008 - 12:12
You can find more info about the JSInfoEvent in HTML DOM Event Object
see

Happy Newyear and enjoy the WinDev / WebDev coding

Jan Kanters
Membre enregistré
77 messages
Posté le 10 septembre 2019 - 16:18
This exactly what I needed - <enter> on an edit control
Thanks (years passed, but good info)