FoxInCloud
keyPress
Gravatar is a globally recognized avatar based on your email address. keyPress
  Vincent H.
  All
  Jun 14, 2019 @ 09:15am

Thierry,

In textbox:keyPress(), I have this code:

lparameters nKeyCode, nShiftAltCtrl && nKeyCode, nShiftAltCtrl doc: modify class awtxt of aw.vcx method keypress or "view parent code" > awtxt
IF (Type('m.thisForm.wlHTMLgen') == 'L' AND m.thisForm.wlHTMLgen)
   RETURN "13,1"
ENDIF
THIS.ReadOnly = .F.

It doesn't work. Nothing append.

The same code with an editbox works.

Any idea ?

Gravatar is a globally recognized avatar based on your email address. re: keyPress
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jun 14, 2019 @ 11:17am

Is this code in a class or an instance?

Gravatar is a globally recognized avatar based on your email address. re: keyPress
  Vincent H.
  Vincent H.
  Jun 14, 2019 @ 11:21am

On textbox: URL de la requête :http://localhost/dooTest/DOMEvent.doo?&Event=blur&ObjAddr=compte_scx-credits&UserID=5I90OOZQV&PageInit=&nReq=6&ValueType=string&Value='0'

On editbox: URL de la requête :http://localhost/dooTest/DOMEvent.doo?&Event=keyup&ObjAddr=tabbord_scx-pageframe1-page1-repert&UserID=5I90OOZQV&PageInit=&nReq=2&ValueType=number&Value=13

Gravatar is a globally recognized avatar based on your email address. re: keyPress
  Vincent H.
  Vincent H.
  Jun 14, 2019 @ 11:23am

not a class, in the keypress() method of an textbox

Gravatar is a globally recognized avatar based on your email address. re: keyPress
  FoxInCloud Support - Thierry N.
  Vincent H.
  Jun 17, 2019 @ 08:25am

If the next control in tab order is an edit box or a command button, we need to prevent the default event behaviour (jQuery event.preventDefault()) to avoid weird effects in the next control (such as clicking the button).

When using event.preventDefault() on .keyDown(), .keyUp() does not fire, which seems to be what happens in your case.

© 1996-2019