How do I tell if the option key is down?

I want to detect whether the option key is being held down while the gui is setting up (the option key, only appearing on macs, is roughly equivalent to the 'alt' key).
I am not having any particular events fired at this time, that I know of. How can I detect this? I searched the API and other documentation -- there was a lot of stuff on keys becoming pressed or released (which can be represented by a java.swing.KeyStroke), but I couldn't find anything to just ask whether a given key was down at a given moment. You see, the option key could very well have been held before java even started, let alone before I am ready to ask the question...

Found it, I think
    e.isControlDown()

Similar Messages

  • How do I resolve this error message? The iPhoto library is on a locked volume.  Reopen iPhoto when you have read/write access, or reopen iPhoto with the Option key held down to choose another library.

    How do I resolve this error message? The iPhoto library is on a locked volume.  Reopen iPhoto when you have read/write access, or reopen iPhoto with the Option key held down to choose another library.

    Hi j,
    I don't know if this will work, but I'd try logging in to an admin account, going to your main library (not user library), opening it, opening Application Support, selecting iPhoto, hold down the command key and press i, click on the lock in the lower left, entering the password and making sure you have Read & Write privileges for System and Admin.

  • The iPhoto library is a Time Machine backup, and so cannot be used as the main library. Reopen iPhoto with the Option key held down to choose another library.

    I recently tried to look up my pictures on my time machine back up on an external hard drive. As soon as I try to open it I get the following message.
    "The iPhoto library is a Time Machine backup, and so cannot be used as the main library. Reopen iPhoto with the Option key held down to choose another library."
    I have tried holding down the option key but still couldn't few the photos.
    I want to know if there is anyway I can actually view these photos. I have over 85gbs of photos on the hard drive.  I have tried googling and looking at pervious forums with the same problem but nothing is working.
    Please help!

    Select Mac Help from the Finder's Help menu. Search for "Restore items backed up with Time Machine."

  • This message shows up when I try to access my auxiliary iPhone library: "The iPhoto library is on a locked volume. Reopen iPhoto when you have read/write access, or reopen iPhoto with the Option key held down to choose another library."

    This message shows up when I try to access my auxiliary iPhone library: "The iPhoto library is on a locked volume. Reopen iPhoto when you have read/write access, or reopen iPhoto with the Option key held down to choose another library."
    What did I do wrong?  I have been downloading all my photos into this same library since Janurary with no problems.

    What version of Mac OS X?
    Click the black Apple icon on the top left of the screen and select About This Mac. The next screen will show the information.

  • I can't access iPhoto any more??? This is the message I'm receiving......The iPhoto library is a Time Machine backup, and so cannot be used as the main library. Reopen iPhoto with the Option key held down to choose another library." Help!!!! Please!!!!!

    What does this mean? I had my computer restored and now i cant use iphoto..... i had it restored from a back up from feb 2013... my mac is missing a few things since but iphoto is a necessity these days..... Help me.... Help me please.....!!!

    SOrry - that is not a result of launching iphoto while depressing the option key - to help you we need to know what you have and the results of this question are important to that
    LN

  • IPhoto won't open.  Says CAUTIONThe iPhoto library is a Time Machine backup, and so cannot be used as the main library. Reopen iPhoto with the Option key held down to choose another library.

    I tries to verify that my photos were being backed up on Time Machine to an external harddrive, because I would like to delete my Camera Roll on my iPhone.  I was not able to view any photos in my backed up photo library, after entering Time machine.  Now, I can't even open iPhoto on my iMac with the pop up box warning me that the library is a Time machine backup....which it shouldn't be, because I'm openning iPhoto on my Mac...NOT the external HD.
    What happened, and how do I access my photos?

    It sounds like you went into the Time Machine hard drive, found a library and "dragged" it to your Pictures folder or wherever on your hard drive.  That's not the way to do it.
    Go to your Pictures folder and enter Time Machine via the TM menu in the menu bar:
    Then follow the instructions in this screenshot:
    OT

  • IPhoto won't let me open it using the option key

    When I try to open iphoto with the option key held down I get tne error message "the library is a Time Machine copy and cannot use". The only option I have is to Quit which gives me a viscous circle. How can I change to another library without opening using the option key.

    Thanks for the reply.
    I am not trying to use a library from a Time Machine backup. I have made a library from Time Machine by restoring it and that is the one I want to use.
    It had worked just two weeks ago, but now I am getting the error message with only the "QUIT" option and the revolving circle indicating the program is trying but not suceeding.
    I believe iPhoto is pointing to the pictures in my user's files - MacSSD/Users/JBL/pictures. I deleted a small iPhoto Library (7.4mb) that had been given a 3/14/14 designation and now there isn't an iphoto library in pictures. I'm not sure how that file got created, but iPhoto started last using the restored library that resides on an external hard drive.
    How can I determine where iPhoto is pointing to find the library without opening iPhoto which I can't do because of the circular QUIT option?
    Any further help will be most appreciated.

  • I have a Seagate 2TB external hard drive partitioned with one partition of Snow Leopard (my computer is running Lion). Can't seem to reboot using the option key. Any ideas as to what's wrong?

    I have a Seagate 2TB external hard drive with 3 partitions, one for Snow Leopard - my computer has Lion. I cannot seem to boot from this hard drive but I could yesterday. Any ideas?

    Didnt help. The night I asked this question I was able to reboot from the external hard drive after running Disk repair (which said everything was fine). Tonight I have tried again and cannot boot from the external. So I tried the Safe Mode restart and then chose restart with the option key held down as well as shutting down and trying holding down the option key while turning on the power. I have never been able to reboot just choosing restart and holding down the option key. Whenever the reboot from the external has worked I've had to shut down and hold the option key while turning the power on. Now that is not working. My computer is brand new as is the hard drive. I don't know where to go from here.
    I can access the drive just fine while I'm in Lion. I just can't boot up using it. Help!

  • How to stop the option key from changing tools when trying to subtract from a selection?

    How to stop the option key from changing my tools when I am trying to subtract from a selection?
    I'm running CS3 on Mac OS Leopard, and the automatic tool switching slows me down, but even preferences doesn't show a way to turn this off.
    Thanks for your help.

    With any marquee tool, JUST holding down the option key should not switch tools. You need to explain the problem much more carefully, It's completely impossible to tell from your description whats going wrong.
    automatic tool switching
    The only preference related to this, is to do with the SHIFT KEY - "use Shift key for tool switch".

  • When starting up my iMac with Option Key held down, my recovery partition shows 10.9 instead of 10.10.  How do I install the correct recovery partition?

    iMac (27-inch, Mid 2011)
    Yosemite 10.10.1
    When I start up my iMac with option key held down, the recovery partition is shown as 10.9 instead of 10.10 which is the installed version.
    How do I install the proper recovery partition?

    Thanks very much for the quick reply.  I figured it would something that simple.  Like I said, I only know enough to cause trouble.  LOL
    Thanks again,  Guess I need to find a new game to play.  LOL

  • How can I turn off the option in my message settings so that others can not tell that I have read there texts? Please HELP

    How can I turn off the option in my message settings so that others can't tell that I have read there message I have an iphone4 updated to the 6ios

    Set Settings->Messages->Send Read Receipts to Off.

  • How to remove boot options while booting in mac with the options key

    I've just installed windows trough bootcamp, but somethings went little bit wrong,
    Everythings works fine, mac works and windows 7 works properly. But when i hold down the option key while booting i dont have the normal 3 options (Mac, Windows, Mac Restore). I now see these options (MAC, Windows, Windows, Windows efi, mac restore).
    MAC -> works fine
    1e windows -> (error no operating system installed)
    2e windows -> works fine
    3e Efi windows (boots into mac)
    MAc restore -> works fine
    So is there an way to clean up these options?
    Thanks

    You think someone will use Boot Camp Assistant?
    EFI is / was always there. Sometimes it shows up (from using Disk Warrior).
    Windows has its own 100MB system reserved as well that is the boot area.
    I'd start with Lion Recovery, show hidden features and partitions, and check the health of all, and repair HFS volume.
    Also try your Windows DVD and see if it sees a problem.

  • 'how to identify the option key'

    pls can someone help me identify the 'option key' on my computer?

    That means the key with the symbol ⌥
    From left to right:
    fn ctrl ⌥ 
    and this is not a key but a smily :-)
    marek

  • Boot while holding the OPTION key doesn't work.

    This is really dumb.  I was thinking today my passwords were too weak, so I set out to put Keychains to use.  First thing I did was reset my login password - but then changed my mind and reset it again.  Didn't write any of this down and now I can't correctly type in an admin password. 
    SO I searched and found how to boot into the "Recovery Partition" by restarting while holding the OPTION key.  This worked!  I used the resetpassword in Terminal - and successfully reset the ROOT administrator password.  I figured that was me.  And my advisor (article I found on-line) didn't mention NOT to.
    I still need to reset my admin user password, but now when I try to do the Recovery Partition trick my display remains blank.  I can tell it's powered up, but no progress bar or apple logo...  One further clue is that if I give up and let go of the OPTION key (because nothing at all is happening) five minutes pass (not 20 seconds or so like the time it worked) and the computer starts up as usual.  No "OS X Utilities" window, just the everyday wallpaper and file folders.
    So that's my situation.  Many thanks in advance.
    I should mention, I'm using a mac Pro and the latest version of Yosemite.  And a hardwired keyboard and mouse...

    Is the key(s) stuck, or sticky or not very responsive?
    try another keyboard, any usb keyboard for windows or another mac should work.
    try flipping your keyboard over and letting it bang on the desktop, your r key could be gunked up and the contact might have failed. Depending on the model keyboard liquid or food or something else could be trapped, the older bondi-plastic ones do this more than the aluminum-plastic ones but the key could need a good smacking,.

  • My macbook pro no longer connects to my TV with the mini dvi to hdmi adapter. A while ago the computer fell down and hit the cable. How can I tell if the computer is working ok. Doesn't show mirroring any more.

    My macbook pro no longer connects to my TV with the mini dvi to hdmi adapter. A while ago the computer fell down and hit the cable. How can I tell if the computer is working ok. Doesn't show mirroring any more. Was working while watching a movie but when I pulled it out from the computer and put it back in the system would no longer mirrorr the screen on the TV.

    The best option is an appointment at an Apple store genius bar.  The evaluation will be for FREE!
    Ciao.

Maybe you are looking for