1 of 1 people found this helpful
Rather than removing the Cut command from the menu, have you tried substituting a script that either does nothing or tells the user they can't cut or does a copy instead? Perhaps the OS is substituting some command in the absence of the Control-X menu item; if so, your own substitute might prevent that. The keystroke script triggers in FileMaker don't get to see a keystroke until after the OS and FileMaker menus are done with it, so trying to intercept it in FileMaker may not help.
If you want to try intercepting keystrokes anyway, you could set-up an OnLayoutKeystroke script trigger that exits with a result of False or 0 (zero) if the user keyed Control-X, and True or 1 otherwise. This will tell FileMaker to discard the event.
What I just tried is something quite similar and it works, but I do not know if the project manager will buy the solution. I created a menu called "Unused" and then placed several commands under Unused that did exactly that; they intercepted the CTRL-Whatever keystroke and when they did, called NullKeystroke, a script that does nothing. Your suggestion is actually simpler and thus a bit morer elegant than mine. If they won't accept my solution then I will suggest yours. Perhaps that will satisfy them.
According to the documentation, there are some keystroke combinations that will not be captured by some script triggers, among them the cut and paste keystroke combos, which is why your suggestion seems to be the better route.