/*
Automatically switches between the select and draw tools, based on whether a pen is being used.
Choose the select tool
Hover/use the pen to draw, move it away to return to select mode
This is based on pen hover status, so will only work if your pen supports hover!
If you click draw with the mouse or press select with the pen, switching will be disabled until the opposite input method is used.
Note: This script will stay active until the Obsidian window is closed.