How do I intercept input to the tilemap editor?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Nano

Hello, I’m working on a plugin to be able to paint several cells at the same time.
Currently it’s working almost as intended, I can paint/erase over an extended radius of cells around the cursor or a dragged selection of cells. What I need now is a way to prevent the tilemap editor from recieving user input while the plugin is active (so that it doesn’t paint over my cells). Is there a way to do this aside from modifying the script for the tilemap editor plugin?