There have been messages that indicate that when disabling the KeyBinder plugin, F2 works properly on Linux.
Although I've traced this situation right up to KeyBinder's handing off the key to Linux (and Linux then ignored it), it seems that since it works *without* KeyBinder, there must be an errror in there somewhere.
I'll revisit the problem.
Yes, this the exact case with me.
Also, this might be a unique case for my system (Ubuntu MATE 16.04, Code Blocks 17.12), but after I make CB full screen (Shift+F11) it F2 and Shift+F2 stop working.
I can only open the logs again from the View menu, and close it with F2, but nothing else.
I have to close CB and open it again for it to start working again and not use fullscreen.