Can only use custom keyboard layout in certain apps?
@Tom Gewecke suggested in the comments that I place the layout into /Library/Keyboard Layouts. I did this and restarted, then it worked as expected!

Disabling Siri and having its keyboard shortcut set to NONE (and restarting) did not seem to change it. And I did not have Chinese, Japanese, or Korean keyboards active.