Why is my enter key on the number pad different then the one by my pinky?

Discussion in 'Mac Programming' started by chrono1081, Apr 18, 2010.

  1. chrono1081 macrumors 604

    chrono1081

    Joined:
    Jan 26, 2008
    Location:
    Isla Nublar
    #1
    Hi guys.

    Sorry for the strange thread title but it best described what I'm about to ask.

    I was brushing up on my Objective-C (again) and spent a good while ripping my hair out over a super simple exercise and why it wasn't working/causing xcode to do strange things.

    Here, after using a command line program with scanf, I found that if I press the enter key on the number pad, my program would not process the scanf command.

    If I pressed enter by my pinky (the one right below the "\" key), no problem. The program executed as normal.

    Anyone know why this is? Is there a preference in xcode I can change that says to treat these two keys the same?

    I usually program on windows so I don't know if this is an underlying unix thing or not : /
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    It's nothing to do with XCode. They are different keys. One is Enter and the other is Return.
     
  3. chrono1081 thread starter macrumors 604

    chrono1081

    Joined:
    Jan 26, 2008
    Location:
    Isla Nublar
    #3
    Doh! I didn't think about that haha.

    The crappy keyboard I am on has them both labeled as the same thing lol.
     

Share This Page