Subscribe to
NSLog(); Header Image

The Terminal and the Shift Key?

So it turns out that the problem I was having with the shift key in 10.3.6 are actually tied to, of all things, Terminal!

Yes, with Terminal running, the shift key in Photoshop doesn't work properly. Nor does non-proportional resizing in QuickTime Player.

I have absolutely no idea why this is the case, but it is. I'll see what I can find out, but preliminary tests are as follows:

  • Renaming my .tcshrc file didn't change anything.
  • Removing the prefs fixes it.
  • It's something in the bottom of the prefs file. I'll post an update when I find it.

Update: "Secure Keyboard Entry" (see "File" menu in Terminal) seems to be at fault here. Enabled, QuickTime Player can't non-proportionally resize with the shift key held down. Disabled, it works beautifully.

7 Responses to "The Terminal and the Shift Key?"

  1. Verified by at least a few other people. Will file bug in the morning (3:32 or so as I type this).

  2. That would make sense. Secure Keyboard Entry stops programs being able to directly poll the keyboard - so they won't know that you're holding down shift. (Assuming that this is how they detect the shift key... maybe there's another way of detecting it, and if not, maybe Apple needs to build one?)

  3. Check out rentzsch's entry on this from awhile ago, I remember having to look it up when my option key wasn't working

  4. Ben, ok, so the thing should really only work in the Terminal, not other applications. 😛

  5. Except for the fact that it is secure entry, and you have to turn it on yourself. All the secure text fields do the same thing to ensure that no key loggers grab your password while your entering it into secure dialogs.

    The reason it isn't on by default is something like this could happen where other applications need the keys and while your not actively in the state is global so all open applications are affected by it.

    The only "real" fix is for Apple to make turn Secure keyboard Entry off when isn't the foremost application.

  6. Adobe Illustrator CS also seems effected by Secure Keyboard Entry:

    Karl's exactly right, EnableSecureEventInput()/DisableSecureEventInput should be made process-wide only.

  7. Well, this explains a long-standing mystery for me. Apple Remote Desktop 1.2 was ignoring my shift key and I never could figure out why.