Is this a bug?? Using "?" in a C++ file..

Started by RickF, June 22, 2011, 03:04:15 AM

Previous topic - Next topic

RickF

I almost never use constructs like :

cout << (grade >= 60 ? "Passed" : Failed") << endl;

IF I try typing the above line in an existing C++ mode buffer, when it's time to type the "?", the cursor moves down a line and I'm unable to type it without using cut-n-paste from a terminal window (for instance).. I looked through the keyboard mapping but didn't see anything mapped to a "?".. Is this a feature I'm missing or a bug?  I'm using version 1.49.817.

alex

By me works.
I think you need to search for / + Shift but not ?. I mean can happen, that you type not ? but use some modifier + another key.
Have you done any modification of keyboard layout?
Maybe try with Default?

P.S: maybe you have defined shortcut for code template?
Is same thing happens for plain text?
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

RickF

Ok.. I do have an alternate keyboard loaded that I tailored (forgot about that) -- with one change (but I don't recall what it is now)..  With this "eclipse" mapping loaded, it does not work in a plaintext buffer either -- actually nothing happens.. If I switch back to default key mapping then it's OK.

Is there a way to view the two keyboard mappings side-by-side?  I tried hitting the "view" button but didn't see anything happen.

Thx!

alex

Normally, "View" button should call xslt transformation of xml file with schema to HTML representation.
But it should be saved before.

To only compare, easier to check directly files. Load both from your user folder/keymap into HE or diff program and compare.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

RickF