This is actually enabled by default unless you disable it. No extra code needed, unless the macOS implementation conflicts with yours.
We haven't intentionally opted out of this that I know of, we just didn't start Alacritty from an XCode project on macOS.