Normal Topic Evil Evil Shift-F5 (Read 621 times)
BWETTLAUFER
Full Member
***
Offline



Posts: 216
Location: Cambridge, Ontario
Joined: Apr 9th, 2010
Evil Evil Shift-F5
Feb 8th, 2016 at 5:01pm
Print Post Print Post  
Hi folks,

We just found a user had overwritten one of our records by hitting Shift-F5.  I need to turn this function off immediately.

I know how to remove it from the command tree, but how do I turn off the keystroke function?  Here's my current setup to prevent F3 / Deletions ...

Code
Select All
// ====================================================
// Lock Down Deletion of Debtor Files -- BW 2015-08-19
// ====================================================

vTemp = @Group
if vTemp = "Users"
{
	FormNotifyForm(@Layout,4)
	FormNotifyForm(@Layout,7)
	DisableMenuBarItem("Edit")
	vHideTree = @HideTreeItem("Search Update Menu!Navigation!Record Commands!Delete Record (F3)")
	vHideTree = @HideTreeItem("Search Update Menu!Results Commands!Mass Delete")
}
else if sTemp = "Supervisors"
{
	FormNotifyform(@Layout,4)
	FormNotifyForm(@Layout,7)
	DisableMenuBarItem("Edit")
	vHideTree = @HideTreeItem("Search Update Menu!Navigation!Record Commands!Delete Record (F3)")
	vHideTree = @HideTreeItem("Search Update Menu!Results Commands!Mass Delete")
}
 

  
Back to top
IP Logged
 
assistent
Member
*
Offline



Posts: 11
Joined: Feb 11th, 2008
Re: Evil Evil Shift-F5
Reply #1 - Feb 17th, 2016 at 10:42pm
Print Post Print Post  
Hi i had the same issue, but solved it this way:

IgnoreKey(65474, 0) //Ignore F5
IgnoreKey(65474, 65536) //Ignore Shift-F5 Ditto previous record
IgnoreKey(65476, 65536) //Ignore shift-F7

and also i disabled the F11, depending on the login

IgnoreKey(65480, 0) //Ignore F11
IgnoreKey(65480, 65536) //Ignore shift-F11
IgnoreKey(65480, 524288) //Ignore alt-F11



René (a Sesame user)
  
Back to top
 
IP Logged