Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to distinguish Delete and Home key on editbox?

Hi,

I want to disable delete key for edit box.

and want to allow home key of keyboard.

now the problem is SAP display charpress 36 for both key.

so how can i distingush which key is pressed ?

Regards,

Alpesh

Silver Touch Technologies

Former Member
Former Member replied

Alpesh,

in this case you are not able to find out, which key was pressed (SAP returns in pVal.CharPressed the same values for non standard keys even modifiers are same). The only way (I think) is use other thread and with .NET catch the pressing key and then with itemevent combine, if the user is on edittext or not and based on this allow or disable the key.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question