Checking for Ctrl key after DropTargetDragEvent

Hi,
I need help with a program which contains a table and a tree. A DropTargetDragEvent is fired whenever selected line(s) from the table are dragged to the tree. Upon dragEnter() I do some action. How can I detect if the Ctrl key is pressed at that moment?
Any suggestions are highly appreciated.

It doesn't make a difference if I call dropTarget.setDefaultActions(DnDConstants.ACTION_COPY_OR_MOVE) or not.
But I just noticed that event.getDropAction() returns DnDConstants.ACTION_MOVE when I press the SHIFT key and DnDConstants.ACTION_COPY otherwise. This is better than nothing but actually I wanted to detect the CTRL key.

Similar Messages

  • Mail not checking for new mail after sleep

    Mail will not check for new mail when waking from sleep unless I log off and back on first. I tried quitting Mail, which works once in a while. I tried putting all Accounts back online, which works occasionally. But most often nothing works except logging off. Must I change to another mail program, or is there a better solution.

    After trying various solutions, I found that the fault was not with Apple Mail or my iMac but with Airport taking time to warm up after sleep. I switched to an Ethernet connection instead and it works fine now

  • Lower Tolerance Checking for PM Key

    Hi,
    For our business process we accept every incoming quantity change made by the vendor in the purchase order response. We accept quantity increments as well as quantity descents. In order to prevent the POR from having to be approved/accepted by the responsible purchaser, we also need a lower limit to customize the same.
    Therefore the question is, why is the lower limit input field missing in the PM key? When going through the help file of this customizing transaction we can read the following:
    PM: Quantity variance (converted to currency amount)
    If a confirmation is expected for a purchase order item, the system calculates the purchase order confirmation net price multiplied by the purchase order confirmation quantity. The system compares this sum with the defined upper and lower limits. You can also define percentage limits for the quantity variance check. Then the percentage variance from the expected quantity calculated - independent of the purchase order price - and this is compared with the defined percentage limits.
    As you see above, it is clearly stated that u201CThe system compares this sum with the defined upper and lower limitsu201D. So according to SAP help, lower limit comparison should be possible.
    In order for this to work we need the lower limit input fields.
    ---> Is there any other way to establish the above ?
    Thanks and regards,
    Aline

    Hi,
    Priority of tolerances is  PO tolerance limit,  TOG tolerance grp. for User, TOG tolerance grp. for Vendor (if user not logged on). Even absolute tolerance limit always has priority over percentage limit.
    In your case, you need to check PO tolerance first then TOG for user.
    regards,
    rahul

  • Keybaard dosen't work except for ctrl key

    my keyboard quit working after I was unable to restart computer for the new day, I ended up doing a back and reboot with  my boot recording. the back up the system did to my external drive was pathetic I lost alot of data, pictures, music, payment records to all my online accounts. 5 or 6 wipeout last 8 years disgusting this win 8.1 has been a nightmare foe me after 45 years on computers, since the old key punch machines.   Jerry

    @nitehawk4300 
    ‎Thank you for using HP Support Forum. I have brought your issue to the appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publicly post ( serial numbers and case details).
    If you are unfamiliar with the Forum's private messaging please click here to learn more.
    Thank you,
    Omar
    I Work for HP

  • Aperture always ask for license key after migration to a new mac

    Hello,
    I used the migration tools to transfer data and applications from my old mac to the new one.
    When I lauch Aperture it always ask me to write the license key. I do it and can start to use Aperture.
    The problem is that this settings is not saved and I have to put again the serial key everytime I launch Aperture.
    I use the last version of Aperture 3.
    Thanks in advance.

    You may have a corrupted "ProAppSystemID" file or Aperture cannot write to the System Library.
    To stop Aperture asking for the serial number, first check, if you still have an old file "ProAppSystemID" in your System Library.
    Quit Aperture.
    Go to your MacintoshHD and open the folder "Library", then "Application Support", then "ProApps".
    Remove the File "ProAppsSystemID" to the Desktop, if it exist and restart Aperture.
    Reenter your serial number, hopefully for the last time.
    Sometimes Aperture writes this file to a temporary directory, when it cannot write to the Library. If the above does not work, look at the temporary directory /tmp
    Use the Finder's "Go" menu
         Go > Got to folder    and  enter /tmp into the textfield. If you see the file there, move it to its proper location.
    In this case you may want to repair the permissions on your system drive; you can do this using the "First Aid" tools in "Disk Utility" (located in Applications > Utilities)
    Regards
    Léonie

  • SoftKeyBoard checking for ENTER key

    When I put up the softkeyboard for iOS how can I test when the ENTER key has been pressed using actionscript 3.
    Currently I listen for the SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE to call a function but would rather do it using the ENTER key (go, search etc return key labelled key).
    Please note I am using Flash Pro not Flex.

    Do you really want to recheck it in a loop? It seems to me that it would be easier to create a separate thread that reads System.in, blocks on it, and then issues an event when it gets something.

  • CS6 asking for serial key after 18 months of use

    I purchased DW CS6 through the education scheme and have been merrily using it for 18 months. Yesterday tried to load it an it's asking for a Serial number of go to a free trial. I have read the forums and this is a common problem. How do I solve this? If not can I get a refund? I also do not have a serial number on the packaging, rather a Product Code.

    Hello Belinda,
    this sounds very strange and so you should have a look at Adobe's database, to see what's stored/saved about your accounts. Here you will find general infos about your Adobe Account https://www.adobe.com/account.html >>> see My productsView all >>> These registered products are associated with your Adobe ID. >>> Name >>> Serial number. And to find your serial number have a look there http://helpx.adobe.com/x-productkb/global/find-serial-number.html  >>> I lost my serial number >> see comment.
    The last time Adobe suggests so too this https://helpx.adobe.com/contact.html?step=ZNA_downloading-installing-setting-up_licensing- activation.
    If your problem persists, please click through http://helpx.adobe.com/contact.html and if "open" please use the chat, I for my part had the best experiences. I quote from Adobe's employee Preran: The chat button is activated as soon as there is an agent available to help.
    Hans-Günter

  • Catch KeyDown events for modifier keys

    I need to be able to tell when a user presses or releases the CTRL key for my application, but I can't get KeyListeners to work and the key bindings only appear to work with releasing the key. I also have key bindings for CTRL key combinations (like CTRL-N, CTRL-S, etc.), but I need an event which is fired when the user first presses the CTRL key. The goal is to have a tooltip on my custom JPanel which pops up when I press CTRL and goes away when I release it.
    My (broken) key binding code:
    JPanel main=new JPanel();
    InputMap im=main.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
    im.put(KeyStroke.getKeyStroke("pressed CONTROL"), "cDown");
    im.put(KeyStroke.getKeyStroke("released CONTROL"), "cUp");
    main.getActionMap().put("cDown",new AbstractAction() {
        public void actionPerformed(ActionEvent e) {
            isCtrlDown=true;
            updateTooltip();
            System.out.println("down");
    main.getActionMap().put("cUp",new AbstractAction() {
        public void actionPerformed(ActionEvent e) {
            isCtrlDown=false;
            updateTooltip();
            System.out.println("up");
    });If you press the control key a few times over this component, you only get "up" printed.

    Hi BaconOppenheim,
    Could you let me know which locale/input source you're using? I've run through some tests with the configuration you mentioned and I'm not seeing a problem. There is an issue with Ctrl+Click as that triggers a right click on Mac but the Alt key is certainly working on mouse events.
    Could you send a screen shot of the test extension output after running:
    1. Click + Shift key down
    2. Click + Alt key down
    3. Click + Cmd key down
    4. Click + Shift key + Alt key + Cmd key down
    That should cover the cases and show me the exact results.
    Thanks,
    Greg

  • Determine if Ctrl key is pressed.

    I want to perform some actions when handling Mouse Move event only when Ctrl key is pressed. Is there a way to determine pressed state of Ctrl key?

    Hi Jonni,
    I've attached a simple example VI that uses the Mouse Move event filter to check for mouse movement and calls user32.dll to check if CTRL key is pressed. I think that is what you are looking for.
    Sev K.
    Applications Engineering Specialist | CLA
    National Instruments
    Attachments:
    GetCtrlKey.vi ‏12 KB

  • Unable to check for purchases problem . . .

    Hi,
    I mentioned this problem in another thread, but I think a new one is warranted.
    I too have received the "Unable to check for purchases" message after upgrading some songs using iTunes Plus. After allowing for the initial congestion to die down, it has now been over a month since I bought them, yet I still can't get the songs.
    But, my question is this. I emailed iTunes Customer Service, and I have received a reply requesting my billing details. I've checked, and this is information that Apple already holds. I'm a little suspicious about this request, here is the email:
    "I am sorry that you are not able to download your items that are currently in your download queue. To help troubleshoot this for you, I would like for you to reply to this email.
    In this email if you could please include the billing address associated with your account. I will also need your permission to test your account and reset your password.
    Once we have received this information, we will verify, reset your password and test your account. You will then receive a follow up email with you new password and the results of our test."
    Does this email sound realistic? Has anyone else received an email like this from iTunes Customer Service? I hope I can reset my password afterwards also.
    Yours (in paranoia)
    turkey101
    15" MacBook Pro, 2.4GHz Santa Rosa   Mac OS X (10.4.10)   12" Powerbook 1.5GHz G4 1.25GB, iMac 15 800MHz

    Yes, this email is realistic and not an uncommon reply (I also had such a reply when once I had a problem with the iTunes Store). The iTunes Store customer service rep sometimes needs to be able log into your account and check things when a problem arises, and it's something they can't do without resetting the password since they don't have access to your current password, they can only change it. So I don't think you need to worry.

  • Property u201Czero allowedu201D must be identical for all Key Figures.

    I am having the following error message when trying to run a Statistical Forecast in the Background.  The job cancels out and I receive the error message:  Property u201Czero allowedu201D must be identical for all Key Figures. 
    When I look in RSA1 under Key Figures Details "zero allowed" appears to be checked for all Key Figures.  Can anyone point me in the correct direction I've already tried searching and did not find the answer.
    Thanks.

    HI,
    The setting is not in RSA1 but is in /SAPAPO/MSDP_ADMIN - Administration of Demand Planning and Supply Network Planning
    choose the relevant Planning area right button click on the Planning area choose change key figure settings. From here you can check the flag Zero allowed for the key figure that Stat. FCST is generated.
    Best Regards,
    Ivo Stoyanov

  • Mail Perpetually Checking for Mail and No sound when a New email is received.

    I have two accounts, iCloud and an IMAP. Both accounts are configured correctly. When I launch mail, it will retrieve new messages but continue to search for mail (as in the status bar at the bottom says checking for mail). I noticed that allowing Mail to remian open drains my battery quite quickly. In addition to this, Mail no longer plays sounds for either sending or receiveing but all other sounds work. Again, I checked the settings for this and indeed sound is on. What is most strange is that this just began happening today. I have not changed any settings and actually reset all settings to default (no change). Anyone else experience something similar?

    I get similar odd behaviour. Only since IOS5. Like you it will seem to continue checking for mail even after downloading although I do eventually get a sound albeit long after the emails downloaded. What's strange is Wifi email checking is more sluggish/unpredictable than if I am on cellular. It's not that my wifi is slower, Safari / store browsing is lightening quick under wifi but the email app behaves strangely! Sorry I haven't got a solution for you - just wanted to let you know that you are not alone with this type of issue.

  • Confirmation control key check for inbound delivery creation

    Hi,
    Currently, in the Client's company, the process of receiving goods from purchase orders looks like that (SAP-wise):
    - create a purchase order,
    - receive goods using MIGO and automatically create an inbound delivery,
    - pack the delivery and post goods receipt.
    Recently, some patches have been installed, including one described by note 1602047 (which basically enforces checking confirmation control keys if goods receipt assignment and goods receipt relevance are activated for inbound deliveries). Note says that it only affects two-step stock transfer and creation of automatic inbound deliveries using SPED output but it seems it also affects other basic processes like PO receipt in MIGO.
    Now, when using the old control key (that had MRP-Relevant and GR-Relevant fields checked), the system is unable to automatically create an inbound delivery after the goods receipt is posted with MIGO (with message VL148 - Not possible to create an inbound delivery). I learned that this is because the "GR Assignment" field must be checked in the confirmation control key so it's possible to automatically create aninbound delivery after receiving a purchase order in MIGO.
    After changing the confirmation control key to have the missing field checked it's not possible anymore to receive goods from PO in MIGO as the PO requires shipping notification in order to be processed in MIGO thus requiring of manual creation of an inbound delivery.
    Is there any way to skip this check so the process would remain the same (this model has been working fine for few years in the Client's system) and the inbound delievery would be created automatically after posting the receipt in MIGO?
    Thanks in advance,
    Piotr

    Hi,
    don't know if you found a solution, but we received the following message from SAP:
    The advent of the new version requires some attention to the users. It
    was necessary to avoid inconsistencies which in the past version the
    system was susceptible.
    Main Program SAPMM07M
    Source code of MM07MLVS
    sy-msgid VL sy-msgty E sy-msgno 148
    I have checked the process and through debugged I could confirm the
    following information SAP is providing to all similar incidents reportedfor us:
    Error message VL 148 is issued if in the confirmation control key used
    in the purchase order, the fields for MRP-relevance (T163G-KZDIS),
    GR relevance (T163G-WEREL) and GR assignment indicator (T163G-WEZUO)
    are not set.
    The correction of note 1602047 was necessary to avoid inconsistencies
    (table EKES) in the purchase order. Without having the GR assignment
    (T163G-WEZUO) set, there is no unique reference created between the
    purchase order history (table EKBE) and the inbound delivery
    confirmation (table EKES) at goods receipt which leads to a problem if
    several inbound deliveries exist for the same purchase order.
    If you set T163G-WEZUO to 'X', this assures that, for an inbound
    delivery, the confirmation record (EKES) belonging to this inbound
    delivery (EKES-VBELN) is also accurately updated at goods receipt.
    How to solve the issue?
    Use a confirmation control key with the GR assignment indicator set
    and then create the inbound delivery with VL31N. If you want to be able
    to create the inbound delivery with reference to a certain line item in
    the PO, use transaction VL34.
    If you still want to use transaction MIGO, there is the following
    workaround:
    - Create a purchase order without any confirmation control key
    - Create a goods receipt (GR) in transaction MIGO with reference to this PO and post the GR to a non-HU-managed storage location
    - Create a transfer posting with MIGO using movement type 311 to
    transfer the goods from the non-HU-managed storage location to the
    HU-managed storage location.
    As the transfer posting is an additional step for the user, the whole
    process could be automated using a partner storage location
    (T001l-PARLG) for the GR which then triggers (through a modification)
    the BAPI 'BAPI_GOODSMVT_CREATE' to create the transfer posting without
    user interaction.
    I hope to have satisfied you on the reason why it is now happening and
    also I believe you can explain to business that it is a new behavior
    necessary done from SAP side to avoid worse situations, we are aware of
    potential dissatisfaction it might cause. SAP Support is always
    available to clarify any issue.
    Sorry for not having a more positive answer.
    I hope it helps!
    Leentje

  • Request: BIOS for GX740 to swap Fn and Ctrl key.

    hi,
    I was redirected from this topic https://forum-en.msi.com/index.php?topic=139362.0
    Apparently there is no BIOS function in GX740 for the owner to swap Fn and Ctrl key.
    Really appreciate it if it's available.
    Thanks.

    Quote from: 5rg on 08-August-10, 19:48:32
    I didn't receive email. I used alternative method form PM. Thanks.
    I'll contact you if there is a problem with this mod. I didn't try it yet. Thanks again.
    Quote
    I didn't receive email.
    It was sent to ******* @gmail.com address. Check it in "spam" folder, maybe is there as there is no errors reported.
    Quote
    I used alternative method form PM. Thanks.
    Oki, that's the same.
    Quote
    I'll contact you if there is a problem with this mod. I didn't try it yet. Thanks again.
    You're welcome

  • The timer service encountered an exception checking for the upgrade mode registry key. Requested registry access is not allowed.

    Once in a while i get the error
    Event ID 6463
    The timer service encountered an exception checking for the upgrade mode registry key. Requested registry access is not allowed.
    This also happens when i restart the timer service.
    I already cleared the SharePoint cache (xml's) but no success with that.
    Environment is
    SharePoint 2013 SP1 + CU Dec 2014

    This is a brand new SP13 with SP1 installation after binaries installation i also installed Dec 2014 CU and then created the SP farm.
    The Apppool/Timer account is member of WSS_ADMIN_WPG.
    Issue can be reproduced with restarting SharePoint Timer Service.
    Hereby the Process Monitor output. Hence i filtered it on NOT SUCCESS and Path contains the word UPGRADE
    11:37:57,4244851 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\UpgradeLogLevelOverride
    NAME NOT FOUND Length: 144
    11:37:57,6632057 OWSTIMER.EXE
    6272 RegOpenKey
    HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\v4.0_policy.15.0.Microsoft.Office.Access.Services.Moss.Upgrade__71e9bce111e9429c
    NAME NOT FOUND Desired Access: Read
    11:37:57,6632889 OWSTIMER.EXE
    6272 RegOpenKey
    HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\policy.15.0.Microsoft.Office.Access.Services.Moss.Upgrade__71e9bce111e9429c
    NAME NOT FOUND Desired Access: Read
    11:37:57,7140763 OWSTIMER.EXE
    6272 RegOpenKey
    HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\v4.0_policy.15.0.Microsoft.PerformancePoint.Scorecards.Upgrade__71e9bce111e9429c
    NAME NOT FOUND Desired Access: Read
    11:37:57,7141089 OWSTIMER.EXE
    6272 RegOpenKey
    HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\policy.15.0.Microsoft.PerformancePoint.Scorecards.Upgrade__71e9bce111e9429c
    NAME NOT FOUND Desired Access: Read
    11:37:57,7313089 OWSTIMER.EXE
    6272 RegOpenKey
    HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\v4.0_policy.15.0.Microsoft.SharePoint.Portal.Upgrade__71e9bce111e9429c
    NAME NOT FOUND Desired Access: Read
    11:37:57,7313403 OWSTIMER.EXE
    6272 RegOpenKey
    HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\policy.15.0.Microsoft.SharePoint.Portal.Upgrade__71e9bce111e9429c
    NAME NOT FOUND Desired Access: Read
    11:37:59,2026527 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144
    11:37:59,2109400 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144
    11:38:05,3534303 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144
    11:38:05,3537846 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144
    11:38:05,3594290 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144
    11:38:05,3597316 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144
    11:38:05,3653094 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144
    11:38:05,3656118 OWSTIMER.EXE
    6272 RegQueryValue
    HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
    NAME NOT FOUND Length: 144

Maybe you are looking for