Remapped escape key does not work

My capslock is remapped to escape by XKB Configuration on my Linux laptop. I ran idx on chrome. In https://keyboardchecker.com/ every capslock stroke is registered as escape. However in IDX capslock does not work, won’t do anything. The actual escape functions fine.
I have vscodevim enabled as well.