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. Quote 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. Quote 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. Quote 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.