Jump to content

MonitoredKeys issue


Gabriel

Recommended Posts

Hi, 

I have an issue with the MonitoredKeys. I want to prevent the user to refresh (F5) or go full screen (F11), so I set the following MonitoredKeys

blob.png.4bdae5ea9512a64a61851aca7c0d63cb.png

And inside keys: 

blob.png.e1482de452b4546c8ac6583827d7dc3e.png

 

This is for F5 (116) and F11(122). This works great at the beginning. But if I click on a cell to start edit and press F5 or F11 the event is handled by the browser.

I was able to replicate this issue on Chrome, Mozilla Firefox and Internet Explorer.

 

I Attach the sample project. To be able to replicate is important to start editing one cell (any)

 

Regards

 

 

UniStringGrid.rar

 

 

 

 

Link to comment
Share on other sites

1 minute ago, Gabriel said:

This is for F5 (116) and F11(122). This works great at the beginning. But if I click on a cell to start edit and press F5 or F11 the event is handled by the browser.

I was able to replicate this issue on Chrome, Mozilla Firefox and Internet Explorer.

Hi,

We will check.

Link to comment
Share on other sites

11 minutes ago, Gabriel said:

This is for F5 (116) and F11(122). This works great at the beginning. But if I click on a cell to start edit and press F5 or F11 the event is handled by the browser.

I was able to replicate this issue on Chrome, Mozilla Firefox and Internet Explorer.

Set:

MainForm.KeyPreview = True

 

Link to comment
Share on other sites

Hi Sherzod, 

thanks for the answer. I was able to make it work on the TestCase with no problem, but, on the real project I set the properties as you describe, and when I open a modal window (a particular one, not all of them) and hit F5 it does not capture the event and still refresh the page, but this behavior happens only with mozilla. Chrome and internet explorer work like a charm.

¿Do you have any clues or any advice?

 

Regards

 

 

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...