Author Topic: Is this a bug?? Using "?" in a C++ file..  (Read 223 times)

Offline RickF

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Is this a bug?? Using "?" in a C++ file..
« on: June 22, 2011, 02:04:15 am »
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.
« Last Edit: June 22, 2011, 02:45:49 am by RickF »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Is this a bag?? Using "?" in a C++ file..
« Reply #1 on: June 22, 2011, 02:19:52 am »
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?

Offline RickF

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Is this a bag?? Using "?" in a C++ file..
« Reply #2 on: June 22, 2011, 02:36:20 am »
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!

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Is this a bag?? Using "?" in a C++ file..
« Reply #3 on: June 22, 2011, 02:48:16 am »
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.

Offline RickF

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Is this a bug?? Using "?" in a C++ file..
« Reply #4 on: June 22, 2011, 02:56:34 am »
Thanks.. I'll check it out!

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
751 Views
Last post February 15, 2009, 04:28:32 pm
by alex
1 Replies
685 Views
Last post May 18, 2009, 08:51:21 pm
by alex
3 Replies
530 Views
Last post June 02, 2009, 03:40:00 pm
by alex
6 Replies
1022 Views
Last post November 02, 2009, 11:12:18 pm
by alex
2 Replies
220 Views
Last post May 19, 2011, 01:05:39 pm
by alex