Menu

#768 mac osX: tilde char on azerty keyboard does not work

Undefined
open
nobody
Bug_Report
2022-07-06
2018-11-24
ling
No

Hi. I'm new to codeblocks and c++ programming.
I'm on MacOSX with an azerty (french) keyboard, and I noticed that the tilde char, which I normally do by pressing alt+n won't work inside codeblocks. Note: this shortcut works on all other editors that I have, so I thought the problem came from codeblocks and not my operating system.

Note2: every other weird chars that I can think of (◊≠~∞ÈÏÌ, ...) will print in the codeblocks editor, it's just the tilde that seems to be blocked.

Also, I can paste the tilde from any source (an other editor, or even a web browser) to codeblocks.
But as you can imagine, having to switch to another program just to write a char is not optimal.

Is this a bug or am I doing something wrong?

Discussion

  • Teodor Petrov

    Teodor Petrov - 2018-11-24
    • labels: MacOSX, tilde --> MacOSX, Editor
     
  • Teodor Petrov

    Teodor Petrov - 2018-11-24

    Does typing ~ in the stc sample of wxWidgets work correctly? (you'll have to build it yourself, most probably) I don't have such keyboard, so I cannot test this. If you tell me how to test I could be able to debug it.

     
  • ling

    ling - 2018-11-25

    Hi, I just started learning c++ about 2 days ago, as a hobbyist (i.e. I typed cout << "Hello world" for the first time 2 days ago). Could you please explain how I can type ~ in the stc sample of wxWidgets?

    I googled wxWidgets, and apparently it's a cool library, but I'm not sure if I am going to use it before a looooong time (need to learn the c++ syntax first...,).

    Anyway, do I have to download something to test what you ask me to do?
    I've searched in the top menu of codeblocks and the closest thing to wxWidgets I can find is this menu on the top labeled "wxSmith", which contains the following items:

    1. Add wxPanel
    2. Add wxScrollingDialog
    3. Add wxDialog
    4. Add wxFrame
    5. Configure wxSmith for current project

    (see screenshot below)
    https://i.imgur.com/8whycPP.png

    I tried to click Add wxPanel (out of curiosity) but apparently nothing happened, so I prefer not to try things I don't understand for now.

    So, do I need to download anything, or is it something I can access directly from the codeblocks app? If so how (please)?

     
  • Teodor Petrov

    Teodor Petrov - 2018-11-25

    You have to download the source code of wxwidgets, build it, build the sample and then you'll be able to run it. I guess this will be complex for a novice.

    Can you try some newer build like this any of these https://drive.google.com/drive/folders/0B2rFQ8rNHzEeN0xtU3R6emdhUWs ? (they are not official and are provided by a cb user, so use at your own risk)

     
  • ling

    ling - 2018-11-25

    Ok, I'll try that later. In the meantime, here is what I noticed:

    if the line is blank, then alt+n (the tilde char on mac azerty keyboard) doesn't do anything, however, if there are already some characters on the line, then a "code refactoring" dialog opens, see image (I tried tilde after the characters dd):
    https://i.imgur.com/MSNdcGt.png

     

    Last edit: ling 2018-11-25
  • ling

    ling - 2018-11-26

    Okay, I'm re-reading your last post. Seems to me a big hassle compared to what I want to achieve.
    Plus I will admit that I'm a little paranoid, and I don't feel like downloading dmg from anywhere out of the codeblocks.com domain, no offense.
    I'll be better off copy pasting the tilde from another editor, because I won't use it that often after all.
    My initial intent was just pointing out that it was not working right out of the box in my case: azerty (french) keyboard on mac OSX, which may or may not be a valuable information to you.

     

    Last edit: ling 2018-11-26
  • Teodor Petrov

    Teodor Petrov - 2018-11-27

    You can also build from source, but it is a lot more complex.

    It is valueable and we've seen similar reports before.
    Probably you can try the keybinder/keyboard shortcuts plugin and remove the rename symbols shortcut.

    I'm not sure if this plugin was working correctly in this version of the software. :(

     
  • ling

    ling - 2018-11-28

    Thanks.
    (
    It turns out the tilde char does not come so often, so for now I'll stick with the "copy-paste from another editor" method, which is easier for me.
    )

     
  • Andrew Cottrell

    Andrew Cottrell - 2022-07-06

    This still occurs in C::B SVN 12846 as of 6-Jul-2022.

     

Log in to post a comment.