- Install fcitx5 and its config tool
start fcitx 5(fcitx5 -d) and the config tool(fcitx5-configtool), from there click the Preferences button for the active language:

then set the Choose key modifier to None and enable Type special characters with long press:

You might need to add this flag to ~/.config/electron-flags.conf: