Ctrl-v key combo not working in keydown event in Adobe Air

I am needing to capture the ctrl-c/ctrl-x/ctrl-v keys in the keydown Javascript event from within Adobe Air.
I have managed to get the events to fire correctly.
When I press ctrl, c, x, v, ctrl-c and ctrl-x, I get the correct corresponding keycodes. However, when I press ctrl-v, no event gets triggered.
Is Air preventing the key presses from reaching this event in the case of ctrl-v?
Here is the code I am using:
    document.getElementById('main_grid').addEventListener('keydown', keyDownEvent, false);
    keyDownEvent = function(e) {
        alert(e.keyCode);

I'm surprised you get ctrl-c and ctrl-x. Do they work when you have selected text? What is probably happening is the default handler for the paste event is "swallowing" the keystroke. You could try listening for the paste event and calling the event object's preventDefault() method. (I haven't tried it, though, so I'm not positive that would allow the keystroke to be passed along.) If you are trying to create your own copy/paste functions, you might be better off listening for the copy and paste events themselves, rather than the raw keystrokes.
Another alternative is to listen for the keystrokes on window.htmlLoader, which should get the keystrokes before they are passed to the HTML engine.

Similar Messages

  • Is there a keyboard shortcut to launch firefox 3.6.3 with windows vista? Hot key (ctrl + alt + key) does not work.

    The hot key (ctrl + alt + key) does not work. This is in Windows Vista.

    Thank you Morbus and Cor-el, for your prompt replies. Here's what I did: I've placed the Firefox icon in the quick launch toolbar. So I right-click this firefox icon>Properties>Shortcut tab>in Shortcut Key field, add X (the word "None" changes to "ctrl + alt + X")>Apply>Okay>and that closes the dialog window.
    Then, to try the new launch short-cut, I press and hold down, in order, ctrl, then alt, then x (holding all three down) . . . and nothing launches.
    I thought this would do it! So any further thoughts would be a splendid help ---- many thanx!

  • Tab key is not working on my macbook pro on any app including the key combos. It has snow leopard.

    Hi All,
    I have a macbook pro with snow leopard on it. The tab key is not working now suddenly. It doesn't work on any browser or applications like word or excel. The key combos with Tab also doesn't work.
    Thanks,
    Daniel.

    I noticed the same problem started a few days ago on mac pro with logic fcp keyboard but caps lock also stopped working. I cleaned under and around the tab and caps lock keys thoroughly but no dice. If I change usb ports the keyboard is plugged into caps lock lights up briefly and if I tweak keyboard setting tabs to force it to re-recognise the keyboard the tab and caps lock functions work while I have the keyboard system panel open and attempting to "identify keyboard" but back to not functioning when I close it. There have been a few postings about this problem but haven't come across the solution yet. Any ideas...

  • Hotkeys with Fn Key like brightness, vol ctrl keys are not working in Compaq 15-s006tu Lptp

    Hi,
    I've recently purchased Compaq 15-s006tu Laptop (came with Freedos) and I'm using it with Windows 8.1 (64 bit).
    The keyboard of this laptop is having many hotkeys to control brightness, volume, Wi-fi etc. but these keys are not working whenever I'm trying to use these with fn key.
    In device manager the keyboard is shown as: 
    Standard PS/2 Keyboard
    and following are hardware Id listed there :
    ACPI\VEN_MSFT&DEV_0001
    ACPI\MSFT0001
    *MSFT0001
    I'm not able to find any specific driver fo keyboard on HP driver site:
    http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4158&lc=en&cc=us&dlc=en&sw_lang=&product=7308...
    Please help me as I want to use these control key on my laptop's keyboard.
    Regards,
    Hemant

    Hi:
    Did you install the chipset and graphics drivers?
    You won't be able to dim the brighness without having those drivers installed.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-140540-1&cc=us&dlc=en&lc=en...
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-130111-1&cc=us&dlc=en&lc=en...

  • Modifer keys do not work with mouse in Illustrator

    Below is a copy of a bug report I just submitted to Adobe. I don't suppose any users have run across this and found a solution or workaround?
    I found someone else with this problem in an archived topic thread, but the only response that poor fellow got was an accusation of not following instructions (His problem wasn't user error, BTW).
    Thanks
    ******BUG******
    Concise problem statement:
    Modifer keys do not work with mouse: For example, free transform or rotate behaviors that require "Click-Ctrl" .
    Steps to reproduce bug:
    1. select object
    2. select free transform tool
    3. left click (without releasing) a corner of the bounding box.
    4. start dragging
    5. press ctrl
    Results:
    object behaves as though the ctrl key was not pressed. i.e. the cursor does not change shape and the object scales rather than distorts.
    Expected results: The cursor should change shape as the ctrl key is pressed and the object should distort rather than scale.
    Additional information: This behavior is intermittent. Occasionally Illustrator recognizes the "Click-Ctrl" combination and behaves exactly as the help file predicts it will. The cursor changes shape and the object distorts rather than scales. I can offer no rhyme or reason for when Illustrator will behave as advertised and when it will ignore the modifier keys.
    The example above involves the free transform tool, but the problem occurs just as often with other tool behaviors that require a modifier key + mouse combination.
    Primarily using Wacom Intuos3 tablet. (with latest drivers), but have also tried combinations with microsoft mouse or both mice installed.
    Also, immediately after an occurrence Illustrator bug, left AI open, went to a different app that uses mouse+modifier (Ctrl+Click). That different app recognizes Ctrl+Click with no problems whatsoever.

    Thanks Guys,
    Good to know it's working for you. I guess that's the nature of intermittent bugs. Of course, Adobe's bug report form has a field for version, which I, of course, filled in. Sorry I didn't add it to this post. I'm using the latest version CS3 v13.0.2.
    Stephen,
    Sorry I was not more clear when I said, "For example, ...". I was talking about the modifier keys not working with several different tools. The Free Transform tool advertises functionality that is supposed to work with a "Click (down, but don't release)then hold down Ctrl" combination. The Rotate tool advertises a behavior that is supposed to work with an "Alt-Click" combination. These are just 2 examples of the modifier keys not working. I focused primarily on one example in the bug report(ctrl after and in addition to click in the free transform tool, not alt-click in the rotate tool).
    Here is what I expect(quoted from Adobe's CS3 help file)
    (From the "Distort Objects with the Free transform tool" help topic)
    "Select one or more objects.
    Select the Free Transform tool .
    Start dragging a corner handle on the bounding box (not a side handle), and then do one of the following:
    Hold down Ctrl (Windows) or Command (Mac OS) until the selection is at the desired level of distortion.
    Hold down Shift+Alt+Ctrl (Windows) or Shift+Option+Command (Mac OS) to distort in perspective."
    (from the "Rotate an object by a specific angle" help topic:)
    You can control the exact angle of rotation with the Rotate command.
    Select one or more objects.
    "Do one of the following:
    To rotate around the center point, choose Object > Transform > Rotate, or double-click the Rotate tool.
    To rotate around a different reference point, select the Rotate tool. Then Alt‑click (Windows) or Option‑click (Mac OS) where you want the reference point to be in the document window.
    Enter the rotation angle in the Angle text box...."
    These Tool based mouse-key combinations do occasionally work as they are supposed to, so I know what the expected results are supposed to look like, but whether they work or not appears to depend on the phase of the moon, the day of the week, and the color of the president's underwear.
    Other non-tool based mouse-key combinations in Illustrator work consistently all the time - Ctrl-A for Select All as just one example that always works.
    Thanks Again

  • Ctrl-T command do not work in website with flash

    Ctrl-T command do not work in website with flash
    == URL of affected sites ==
    http://

    If the Flash object has focus then key presses are processed by that plugin.
    In such cases you need to click outside that plugin (e.g. the menu bar if you can't click on the website) to make the keyboard work.

  • When I am on a Youtube video that is running and I want to switch to another tab, the Ctrl+ tab number does not work, is that intended functionality?

    When I am on a Youtube video that is running and I want to switch to another tab, the Ctrl+<tab number> does not work, is that intended functionality?

    This can happen when the video player (Flash plugin) has the focus.
    In that case the plugin consumes all the key presses.
    You will have to click with the mouse elsewhere on the page or in the user interface to make keyboard shortcuts work.

  • Product key will not work with this edition of Windows 7

    I received a product key for Windows 7 Professional N whilst I was at University via Dreamspark. I'm building a new computer and when it's come to inputting the product key, it comes up saying Product key will not work with this edition of Windows 7.
    The version I installed was Windows 7 Professional using an iso and a USB. I rang the phone activation number and when I got through to a representative, I gave him the product key and he said it is valid and should be working. He transferred me to technical
    services but instead I got cut off.
    At this point I'm really not sure what the issue is, the key was for Windows 7 Professional N, I installed Windows 7 Professional and customer support confirmed it as a valid key. Am I missing something?

    Post your issue to the Windows 7 Genuine Issues forum.  Here are the instructions on how to produce a diagnostic:
    MGA
    Diagnostic Report:
    To properly analyze and solve problems with Activation and Validation, we need to see a full copy of the diagnostic report produced by the MGADiag tool (download and save to desktop -http://go.microsoft.com/fwlink/?linkid=52012 )
    Once downloaded, run the tool.
    Click on the Continue button, after a short time, the Continue button will change to a Copy button.
    Click on the Copy button in the tool (ignore any error messages at this point), and then paste (using either r-click/Paste, or Ctrl+V ) into your post.
    One
    Issue Per Thread:
    Most Activation and Validation issues look the same, on the surface, but can have many different causes and fixes. This is why we ask for a diagnostic report and this is also why we ask that you create your own thread for your issue (in other words,
    don't post your issue in another person's thread). 
    It just becomes too complicated to try to troubleshoot multiple different issues in the same thread.
    New
    to the Forums?
    Instructions
    by  Kamin of Ressik 
    Wanikiya and Dyami--Team Zigzag

  • [LAVA Cross Post] CTRL+SHIFT+ Shortcuts sometimes not working in LabVIEW

    Cross-post from LAVA: http://lavag.org/topic/15619-ctrlshift-shortcuts-sometimes-not-working-in-labview/
    See the above post for more information - here's a synopsis:
    CTRL+SHIFT modifiers are not working while running LabVIEW in a Parallels 7 virtual machine. This problem affects both LV2011 and LV2012. I'm not certain that this is a LabVIEW bug - could be an issue with my virtual machine environment or it's configuration - except that CTRL+SHIFT modifiers work in other applications on the affected VMs. It's just LabVIEW that appears to ignore shortcuts with the CTRL+SHIFT modifiers.
    Any ideas? 
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

    X. wrote:
    Still well and alive in Parallels 9 and LabVIEW 2013 SP1. Of course I could upgrade to the latest versions to check whether things have gotten any better.
    Any news on that?
    @mellroth figured out the solution :-)
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • F4 help key does not work in ESS on ITS in Portal

    Hello All,
    F4 help key is not working in all iviews in ESS in Portal.When i try to press it nothing happens and no pop up appears,kindly please suggest wt might be the cause of this error? Iam tired struggling with this issue and not able to trace out reason for the same.My Email Id is [email protected] .Plz revert at earliest.
    regards,
    Saumya

    Hi,
      This kind of problem is known when webgui is being started from an IAC, e.g. HRWPC_FC_EXEC
    You have to set parameter ~webgui_popups 1 in the service file of this IAC.
    BR,
    Disha.
    Pls reward points for helpful answers.

  • ABAP/4 Key is not working in BI 7.0 version

    Hello,
    Some reason my ABAP/4 key is not working on BI 7.0 few months back I created few ABAP programs
    When i try to create a new program using t-code SE38 and program name as 0201 then create button then system will ask ABAP key when i enter its giving error message "incorrect entry"
    What would be the reason?
    Thanks

    well, normally a report has to start with Z or Y. So what key is system asking for? Developer key, which you have already entered a few month ago, or a 'modification' key?
    Are you creating this report with the same user name?
    Have a look at table DEVACCESS in transaction SE11. here you will find all the users and there developer keys.
    Are you creating these report on the same installation as a few month ago, or did something change in the mean time?
    Edited by: Micky Oestreich on May 6, 2008 10:01 PM

  • My number 5 key is not working and my password has a number 5 in it. How can I change my password when I'm signed in on another account or as guest user? I need help :(

    My number 5 key is not working and my password has a number 5 in it. How can I change my password when I'm signed in on another account or as guest user? I need help

    - If the "other" account has administrative privileges then just try changing the PW for your account.
    - Forgot Mac Password? How to Reset Your Mac Password (with or without CD)
    Change the Admin Password with Mac OS X Single User Mode
    Reset mac mini admin password: Apple Support Communities
    - If the problem is due to a bad KB just get a new KB

  • Function keys are not working correctly

    I've been looking all over the various threads and I can't find an answer that solves my problem.
    Here are the details:
    I bought the computer in the U.S. where I live.
    I have a iMac 2.4GHz intel Core 2 Duo  EMC 2133 with a 20" screen. Bought it new in February 2008.
    I have Mac OS X 10.5.8  (I am waiting for my order for OS Snow Leopard to come in!!)
    I have been using a wireless mouse and Keyboard (Love not having cords!)
    Recently, my wireless keyboard got a short and quit working. I went down to the apple store and got a new wireless keyboard.
    I had the computer with me at the genius bar so, yes, the apple employee saw exactly what I have.
    I took it all home got the thing all put back together and got the new keyboard paired up and working with the computer.
    Here are the problems:
    Went to go use the function keys while using iTunes and found they weren't working properly. The F10, F11 and F12 do not control the volume of sound as the keyboard indicates they would, they instead activate dashboard, spaces, and application windows. 
    Following the advice of other threads, I looked over in the system preferences and made sure the "Use all F1, F2 etc." box was unchecked (it was unchecked), things still didn't work.
    I tried the fn key but it appears to not work at all it has no effect on the functioning of the function keys.
    I went under keyboard shortcuts in system preferences and found the F10, F11 and F12 keys, it confirms that those keys control spaces, dashboard and application windows as they are performing but shows no options to either reassign to volume control (as marked on the keyboard) or make the fn key work.
    I've gone back and forth trying various combinations of checked and unchecked boxes to see if anything would work, so far I've come up with nothing.
    A couple more important or interesting facts:
    Yes I have turned off and taken the batteries out of the old keyboard. My bluetooth connection currently shows it as disconnected.
    I have restarted the computer.
    One thing I find odd; when I go under preferences and go to Keyboard and Mouse when I go under the section "Bluetooth" it shows Bluetooth mouse with the name of the mouse and the battery level. BUT nothing is showing up under bluetooth Keyboard, I can't figure out how to change this and don't know if it is contributing to the problem.
    When I go under the bluetooth logo on the top bar I find the mouse and both keyboards referenced, the old keyboard is shown as disconnected and the other two are connected. I have tried to update the device's name but it doesn't seem to let me.
    I have double clicked on the device under bluetooth and it shows the new keyboard as discoverable, paired and connected. Hence, I am using the new keyboard to write this inquiry.
    Please, any assistance would be of great help. I have tried to be thorough in order help narrow the possible problem. Thanks!!

    Hendry
    Just thought I'd let you know.  Our suspicions were correct, it was the OS. After I installed Snow Leopard (10.6.8) all the problems were corrected.  I also updated the RAM from 1 gb to 6 gb. The mac is working all around better. Sorry it took so long to get back to everyone. My superdrive had pooped out. Rather than replace it I got an external drive from OWC connected with firewire 800.  So far everything is running very well, as far as I can tell this external drive is better than the original superdrive. My superdrive has always acted funny, infact I returned the first mac I got after a week because its superdrive was also malfunctioning. Anyway, all that to say everything seems to be fully functioning again.
    Roy
    Re: Function keys are not working correctly 

  • The Control A key is not working. I cannot multi-select my songs. I'm not sure if it is the problem with iTunes 10.6.1.7 or my PC settings encounter issues. Also, i cannot find Album Artwork online using iTunes and i cannot select any view form but List.

    The Control A key is not working. I cannot multi-select my songs. I'm not sure if it is the problem with iTunes 10.6.1.7 or my PC settings encounter issues. Also, i cannot find Album Artwork online using iTunes and i cannot select any view form but List.

    The Control A key is not working. I cannot multi-select my songs. I'm not sure if it is the problem with iTunes 10.6.1.7 or my PC settings encounter issues. Also, i cannot find Album Artwork online using iTunes and i cannot select any view form but List.

  • The 1 key does not work on my wireless keyboard what do i do?

    Hi i had a usb keyboard for a while and the 1 key did not work but i could but use the numbers on the right side of the keyboard but we just got a wireless keyboard that doesnt have the other numbers on the right side so we cannot use the number 1. But it will work in the login window and on other accounts. i do not know how to fix it, what do i do?

    Hello:
    If I understand you, the number one key works some places, but not others.  This is true of the wireless KB as well as the old wired KB. 
    If I do understand, let us know.  If what is happening is different, post the correct information, please.
    Barry

Maybe you are looking for

  • How many Collections can you have in iBooks?

    How many Collections can you have in iBooks?  I have many and now I'm unable to add more collections.  Is there a way to add more collections/shelves?

  • Passing form data from html page to JSP page

    Hi, I have a simple HTML page with a form on it that sends the information to a JSP page that stores the form data in a JSP session. I created a simple form that asks for the user's name, sends it to the JSP page, stores that in a session, then sends

  • How to set global parameters? (Best Practice?)

    Dear all, I've experience with Infor Performance Management tools, Qlikview and also SAP Business Objects Reporting. As for last week i'm new to Microsoft Reporting Services. In our current environemnt we're setting up a Report Structure on top of an

  • How can you tell? dual core or dual processor

    I recently purchased a G-5.... SUPER!!!! How do I know if my new machine comes with a dual core processor or is it a dual processor?

  • How to upgrade the OS on WCS(Linux)?

    I want to upgrade my WCS to RedHat Linux 5.0.  I have burned the iso image to a cd, rebooted the WCS and find nothing happening.  Prior to rebooting, I start a SSH connection to the appliance so I figured that I would see it come up and the upgrade s