dionel1969 Posted June 10, 2011 Share Posted June 10, 2011 How or when is supposed that works OnKeypress Eventin the TUniEdit: before or after the control takes character ? I use certain characters in the input data from a EditBox that are not part of the data, but are modifiers. I have the following code: procedure TMainForm.EditBoxKeyPress(Sender: TObject; var Key: Char); begin case Key of '0'..'9', #8, PlusSign, MinusSign : begin end; Slash : begin Key := #0; SelectNexItem; end; else begin Key := #0; Beep; end; end; // case end; And when I type "Slash" it appears anyway in the EditBox. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted June 10, 2011 Administrators Share Posted June 10, 2011 Modifying "Key" parameter only works in VCL mode. Unfortunately there is no way to implement this on web. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted June 10, 2011 Administrators Share Posted June 10, 2011 This Form of key processing should be processed on client side. In future versions we will provide JS event handlers so you may implement this on client side. Link to comment Share on other sites More sharing options...
dionel1969 Posted June 10, 2011 Author Share Posted June 10, 2011 Ok, I'll be waiting... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now