Jump to content

Trap enter key


d.bernaert

Recommended Posts

Hello,

I would like to trap the enter key for saving a record in an update screen.

This works fine when trapping the #13 key.

But I would also like to be able to keep using the enter key in a memo or html edit control without invoking the #13 key on form level.

Is that possible?

 

Thx,

Dominique

Link to comment
Share on other sites

Hi Sherzod,

I have the property on the form set to 13 -> submit.

When I'm in a unidbmemo and I press enter, it fires the submit, posting the record in the database.

I've added the following function in the Keydown in extEvents:

{
  if (e.getKey() == e.ENTER) {
    e.stopPropagation();
  }

But it still executes the submit.

Thx,

Dominique

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...