Ubuntu – xmodmap stopped working in the latest Google Chrome update

google-chromexmodmap

I remap Insert,Home,Page Up, Delete, End, and Page Down, and it have worked for many years, but with the latest Google Chrome update, it ignores the remapping, and preforms the action if it where were no remapping. Outside of Chrome the remapping works.

Any idea how to get Chrome to honour the remapped keys?

Best Answer

I do similar key remappings and have had the same problem. I'm not sure that xmodmap remappings ever really worked properly in Chrome. For example, in Google Sheets, pressing the modifier key (caps lock in my case) would clear the current cell.

I've solved the problem by (a) buying a new USB keyboard that supports QMK firmware and (b) discovering that my System76 laptop makes customizing the keyboard firmware trivial.

I realise that both those options likely involve new hardware and significant expense, so aren't ideal.

I think the fact that Chrome is able to bypass the remapped keys indicates that the remapping is being done at too high a level. Possibly remapping using evdev might work better, but I haven't tried that. Good luck and sorry I don't have a more general solution.