Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to restrict Ctrl+S key

Anonymous
Not applicable

Hi All

I have designed editable form in Adobe live designer.Here in a button click i am validating some fields as mandatory. So problem is i need to restrict user to restrict ctrl+s key without fill mandatory field. same way i should allow to user to save by File menu also. Is there any way to do. i found this command to restrict user ctrl+s key event.target.dirty = false; i want to know what is use of this command. Thanks in Advance !!

Regards,

Ganesh

1 Reply
radzmar
Level 10
Level 10

Hi,

fact is, you can't deactivate the key combination Ctrl + S.

The script event.target.dirty = false; only resets the dirty flag of the file, which indicates if there have been mady any changes.

If it is false, the save button is grayed out in the UI, but you're still able to save the file.