I have recently installed a Ubuntu 18.04 and I use i3wm. My keyboard layout is br abnt2 and it is already configured but I am not been able to use some accented letters in some softwares (textboxes in general) but in others, everything is working fine. For example, in google chrome, I am able to type accents (ã, á, à, â, etc) but in telegram, KeePassXC, Keepass2, I am not been able to type those accent. This doesn't used to happen in my old ubuntu 16.04 installation. And it is kind of annoying to not been able to simply type an accent the right way.
Do someone knows what is happening? It seems not to be a general ubuntu keyboard configuration issue but something more specific. Maybe a GTK issue? Do someone have a clue to point me in the right direction in order to solve this problem?