I want to intercept and disable the F1 key when using Libreoffice Calc. It has a keyboard mapping feature, but not for F1.
I know of xmodmap, but it seems to change mappings for the entire OS. I want to change it only when a particular app has focus.
Is it possible to remap a key for a specific app?