Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Stauricus on September 22, 2020, 08:56:26 pm

Title: strange behaviour when using some characters
Post by: Stauricus on September 22, 2020, 08:56:26 pm
hello
when I try to use some characters, like
Code
~ ^ ' `
Codeblocks shows a little square with the signal inside (image attached).

and if I press any key (including print screen) it disappears without doing nothing, and the character is not entered in the editor. I'm unable to create class destructors in C++, for example, since I can't use ~. it used to work well, i don't know what happened...

i searched for it in the forum, but found no answer. any ideas?
thanks in advance!
Title: Re: strange behaviour when using some characters
Post by: BlueHazzard on September 23, 2020, 09:32:23 am
Operating system?
Keyboard Layout?
Codeblocks version?
Title: Re: strange behaviour when using some characters
Post by: Stauricus on September 23, 2020, 12:39:08 pm
sorry, I forgot about that!

Linux 5.8.0-1-amd64
Debian Testing (Bullseye)
Keyboard ABNT2
Codeblocks 20.03
Title: Re: strange behaviour when using some characters
Post by: BlueHazzard on September 23, 2020, 01:58:00 pm
Spanish Layouts had problems in the past on Mac with the ~ symbol...
Maybe Portuguese layouts have the same problem? Can you try with english layout, if it is still present?
Title: Re: strange behaviour when using some characters
Post by: Miguel Gimenez on September 23, 2020, 02:55:48 pm
This is related to dead keys, and is a Debian 10 "feature":

https://unix.stackexchange.com/questions/557492/annoying-accent-popup-after-upgrade-from-debian-9-to-10 (https://unix.stackexchange.com/questions/557492/annoying-accent-popup-after-upgrade-from-debian-9-to-10)
Title: Re: strange behaviour when using some characters
Post by: Stauricus on September 23, 2020, 06:05:27 pm
I suspected it could be related to the system, but only happened in CodeBlocks  ???
anyway, I added "XKBVARIANT="nodeadkeys" " to  /etc/default/keyboard, and it is working now. thanks everyone for the help!