cancel
Showing results for 
Search instead for 
Did you mean: 

How to distinguish Delete and Home key on editbox?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (0)