|
| How to detect different keystroke in webdev |
| Iniciado por guest, 13,jun. 2015 18:28 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 13,junio 2015 - 18:28 |
Hi,
How to detect different keyboard keystroke in webdev's entry box ( eg. CTRL or SHIFT key ) ? any sample code will be good..
Regards,
PETER ZHOU |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,junio 2015 - 20:33 |
Hi,
Event is your friend. http://doc.windev.com/en-US/…
EXTERN "WinConst.WL" EXTERN "KeyConst.WL" Event(HandleKeyToMe,"*.*",WM_KEYDOWN) PROCEDURE GLOBAL HandleKeyToMe() IF KeyPressed(... END
Cheers Tor-Bjarne |
| |
| |
| | | |
|
| | |
| |
| Publicado el 14,junio 2015 - 13:47 |
Hi Peter,
In Webdev browser code you can activate the Key Up or Key Down event in the code window of a control. Then JSInfoEvent("keyCode") will give you the ASCII code of the key. Note that Javascript is case sensitive, so keycode is not the same as keyCode.
Regards, Piet |
| |
| |
| | | |
|
| | | | |
| | |
|