Macro to prevent keypresses

asked 2021-01-11 14:01:21 +0100

marka87uk gravatar image

Is it possible to set up a macro that is invoked when a keypress occurs (for instance an alphanumeric key types into a document) which then cancels the text being entered?

Alternatively is there any other way I can prevent documents being edited without relying on setting read-only properties through the file system? Or even to prevent the prompt to save a document when it is modified and about to be closed (can I change the modified status back to unmodified before closing for instance)?

edit retag flag offensive close merge delete

Comments

This question is probably a follow-on to 286679/libreoffice-for-viewing-only-locked-down-environment

ajlittoz gravatar imageajlittoz ( 2021-01-11 14:23:56 +0100 )edit

From my pov a duplicate of https://ask.libreoffice.org/en/question/286679/libreoffice-for-viewing-only-locked-down-environment/ just being asked because of dissatisfaction with the answer provided.

Opaque gravatar imageOpaque ( 2021-01-11 14:24:15 +0100 )edit
JohnSUN gravatar imageJohnSUN ( 2021-01-11 14:26:14 +0100 )edit

JohnSUN - this works to prevent the prompt upon closing! Thank you!

marka87uk gravatar imagemarka87uk ( 2021-01-11 15:12:55 +0100 )edit