KeyLocation bug in KeyboardEvent.KEY_UP for shift keys

Hi There everyone
I have discovered a bug with KeyboardEvent.KEY_UP keyLocation values for the shift keys.
how to reproduce this :
1.when no other keys are down the value for left shift is 1 and for right shift is 2 for  KeyboardEvent.KEY_DOWN and  KeyboardEvent.KEY_UP
2. when you have pressed shift and then press another key -  when releasing shift the value for left and right become 0.
There is absolutely no reason why these values should report anything other then what they initially reported on key down as each key fires its own event with details for each , regardless of any key combinations.
Im using cs5.5 windows 7 basic.
can anyone else verify this so a bug can be logged?
Thanks

var isActivateKeyListener:Boolean = false;
function activateKeyListener($state:Boolean) {
if ($state) {
if (!isActivateKeyListener) {
isActivateKeyListener = true;
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.addEventListener(KeyboardEvent.KEY_UP, keyReleased);
}else {
if (isActivateKeyListener) {
isActivateKeyListener = false;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyReleased);
function keyPressed(event:KeyboardEvent):void {
trace("keyPressed: event.keyCode:" + event.keyCode + " charCode:" + event.charCode + " shift:" + event.shiftKey + " keyLocation:" + event.keyLocation)
function keyReleased(event:KeyboardEvent):void {
trace("keyReleased: event.keyCode:" + event.keyCode + " charCode:" + event.charCode + " shift:" + event.shiftKey + " keyLocation:" + event.keyLocation)
activateKeyListener(true);

Similar Messages

  • Preference for shift key with tool switching doesnt work

    I still have to go throught all the tools if I hit the b key and the Brush was already selected.  Thought the preference of the shift key would help, but know.  What preference or cache do I reset or am I missing something. Thanks.

    What operating system and version of photoshop are you using?
    Resetting the photoshop preferences might clear things up, because if your using the use shift key for switching tools preference, then just hitting the letter itself shouldn't switch between tools in the same slot.
    http://forums.adobe.com/thread/375776?tstart=0
    Message was edited by: R_Kelly

  • Xorg - SHIFT key bugs out randomly after TV-hardware is connected

    I'm on Xfce4. When I hold down left SHIFT key and press some other keys, after a while the SHIFT key may "unregister" itself. What I mean is, it stops working as if I had released it, although I'm still pressing it down. Ie I'm suddenly writing lower-case again and stuff. This behaviour is application-independant apparently.
    I tried running 'showkey' and it correctly reported pressing+releasing of the SHIFT key (keycode 42) when I actually physically pressed and released it. It did NOT report release of the SHIFT key when it in fact stopped working. So it doesn't seem to be a keyboard hardware problem or something.
    The right SHIFT key (showkey says keycore 54 for this one) seems to work correctly though (but it's not really a comfortable work-around..).
    Is there maybe a trick that could be used as a workaround, to somehow switch the right and left shiftkey's key codes? Maybe that could "fix" it. >:)
    I had a look at xmodmap, but that shows entirely different "keycodes" for SHIFT keys so I'm a bit stumped:
    $ xmodmap -pk
    ..for "keycode 42" it had this line:
    42 0x0067 (g) 0x0047 (G) 0x0067 (g) 0x0047 (G) 0x03bf (eng) 0x03bd (ENG) 0x03bf (eng) 0x03bd (ENG)
    ..and for left shift key it had "50" in the "keycode" column:
    50 0xffe1 (Shift_L) 0x0000 (NoSymbol) 0xffe1 (Shift_L) 0x0000 (NoSymbol) 0xffe1 (Shift_L)
    Anyway, I tried out https://wiki.archlinux.org/index.php/Xmodmap:
    xmodmap -pke > ~/.Xmodmap
    ..then edited that file and changed the Shift_L (50) and Shift_R (62) lines, and did
    xmodmap ~/.Xmodmap
    ..and my X froze up completely, not even registering mouse clicks, might wanna correct the Wiki there^^.
    After a reboot, my xmodmap -pke showed the two lines swapped as intended though - but 'showkey' still shows keycode 42 for left and 54 for right, so swapping didn't work here.
    Funny thing is, now after a fresh reboot I seem unable to reproduce the bug, so I'll wait and see what happens I guess.
    Now I have read about people getting a bug where SHIFT key is suddenly _pressed_ on its own, unlike my prob where it is released, and those people always write that it happens when a TV card is connected, and that it is detected as "keyboard" according to X0.log.
    So I just connected my usual bunch of USB stuff that I had disconnected earlier just while that reboot happened after which my problem didn't surface.
    My X0.log:
    [ 647.676] (II) config/udev: Adding input device UVC Camera (eb1a:2571) (/dev/input/event13)
    [ 647.676] (**) UVC Camera (eb1a:2571): Applying InputClass "evdev keyboard catchall"
    [ 647.676] (II) Using input driver 'evdev' for 'UVC Camera (eb1a:2571)'
    [ 647.676] (**) UVC Camera (eb1a:2571): always reports core events
    [ 647.676] (**) evdev: UVC Camera (eb1a:2571): Device: "/dev/input/event13"
    [ 647.676] (--) evdev: UVC Camera (eb1a:2571): Vendor 0xeb1a Product 0x2571
    [ 647.677] (--) evdev: UVC Camera (eb1a:2571): Found keys
    [ 647.677] (II) evdev: UVC Camera (eb1a:2571): Configuring as keyboard
    [ 647.677] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5.1/1-5.1:1.0/input/input13/event13"
    [ 647.677] (II) XINPUT: Adding extended input device "UVC Camera (eb1a:2571)" (type: KEYBOARD, id 14)
    [ 647.677] (**) Option "xkb_rules" "evdev"
    [ 647.677] (**) Option "xkb_model" "evdev"
    [ 647.677] (**) Option "xkb_layout" "de"
    [ 654.995] (II) config/udev: Adding input device Arduino LLC Arduino Leonardo (/dev/input/event14)
    [ 654.995] (**) Arduino LLC Arduino Leonardo: Applying InputClass "evdev pointer catchall"
    [ 654.995] (**) Arduino LLC Arduino Leonardo: Applying InputClass "evdev keyboard catchall"
    [ 654.995] (II) Using input driver 'evdev' for 'Arduino LLC Arduino Leonardo'
    [ 654.995] (**) Arduino LLC Arduino Leonardo: always reports core events
    [ 654.995] (**) evdev: Arduino LLC Arduino Leonardo: Device: "/dev/input/event14"
    [ 654.996] (--) evdev: Arduino LLC Arduino Leonardo: Vendor 0x2341 Product 0x8036
    [ 654.996] (--) evdev: Arduino LLC Arduino Leonardo: Found 3 mouse buttons
    [ 654.996] (--) evdev: Arduino LLC Arduino Leonardo: Found scroll wheel(s)
    [ 654.996] (--) evdev: Arduino LLC Arduino Leonardo: Found relative axes
    [ 654.996] (--) evdev: Arduino LLC Arduino Leonardo: Found x and y relative axes
    [ 654.996] (--) evdev: Arduino LLC Arduino Leonardo: Found keys
    [ 654.996] (II) evdev: Arduino LLC Arduino Leonardo: Configuring as mouse
    [ 654.996] (II) evdev: Arduino LLC Arduino Leonardo: Configuring as keyboard
    [ 654.996] (II) evdev: Arduino LLC Arduino Leonardo: Adding scrollwheel support
    [ 654.996] (**) evdev: Arduino LLC Arduino Leonardo: YAxisMapping: buttons 4 and 5
    [ 654.996] (**) evdev: Arduino LLC Arduino Leonardo: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [ 654.996] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5.4/1-5.4:1.2/input/input14/event14"
    [ 654.996] (II) XINPUT: Adding extended input device "Arduino LLC Arduino Leonardo" (type: KEYBOARD, id 15)
    [ 654.996] (**) Option "xkb_rules" "evdev"
    [ 654.996] (**) Option "xkb_model" "evdev"
    [ 654.996] (**) Option "xkb_layout" "de"
    [ 654.998] (II) evdev: Arduino LLC Arduino Leonardo: initialized for relative axes.
    [ 655.001] (**) Arduino LLC Arduino Leonardo: (accel) keeping acceleration scheme 1
    [ 655.001] (**) Arduino LLC Arduino Leonardo: (accel) acceleration profile 0
    [ 655.001] (**) Arduino LLC Arduino Leonardo: (accel) acceleration factor: 2.000
    [ 655.001] (**) Arduino LLC Arduino Leonardo: (accel) acceleration threshold: 4
    [ 655.005] (II) config/udev: Adding input device Arduino LLC Arduino Leonardo (/dev/input/mouse3)
    [ 655.005] (II) No input driver specified, ignoring this device.
    [ 655.005] (II) This device may have been added with another device file.
    Now I'm wondering, my webcam gets detected as "keyboard" (id 14) ^^' well and so does my Arduino, but that's natural for Leonardo models.
    I started up the webcam, so the uvc modules are now loaded, but still I'm now unable to reproduce the bug for some reason. With either SHIFT key. Well that's good sort of, but then again, not so good to track what causes it when it happens And why does X think that webcams and tv  cards are keyboards?
    Will post again when the bug surfaces again I guess.
    Ok, after plugging in a usb-tv box, the bug started happening again, except this time it's the rigth shift key that doesnt work correctly, while the left shift key seems fine.
    So it seems the xmodmap change worked, although showkey still shows 42 for left and 54 for right.
    This might do as a workaround for now, although someone should figure out why tv cards (and tv usb boxes in my case) mess up the shift key in Xorg.
    Apparently the IR-receiver part of my tv-box was recognized as "keyboard":
    [ 17549.633] (II) config/udev: Adding input device IR-receiver inside an USB DVB receiver (/dev/input/event15)
    [ 17549.633] (**) IR-receiver inside an USB DVB receiver: Applying InputClass "evdev keyboard catchall"
    [ 17549.633] (II) Using input driver 'evdev' for 'IR-receiver inside an USB DVB receiver'
    [ 17549.634] (**) IR-receiver inside an USB DVB receiver: always reports core events
    [ 17549.634] (**) evdev: IR-receiver inside an USB DVB receiver: Device: "/dev/input/event15"
    [ 17549.634] (--) evdev: IR-receiver inside an USB DVB receiver: Vendor 0xccd Product 0x38
    [ 17549.634] (--) evdev: IR-receiver inside an USB DVB receiver: Found keys
    [ 17549.634] (II) evdev: IR-receiver inside an USB DVB receiver: Configuring as keyboard
    [ 17549.634] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-1/input/input15/event15"
    [ 17549.634] (II) XINPUT: Adding extended input device "IR-receiver inside an USB DVB receiver" (type: KEYBOARD, id 16)
    [ 17549.634] (**) Option "xkb_rules" "evdev"
    [ 17549.634] (**) Option "xkb_model" "evdev"
    [ 17549.635] (**) Option "xkb_layout" "de"
    Can I somehow find out which modules were loaded when I plugged it in so I can unload those?
    Also, I tried
    $ lsmod |grep dvb
    dvb_usb_cinergyT2 6645 2147483647
    dvb_usb 15171 1 dvb_usb_cinergyT2
    dvb_core 79241 1 dvb_usb
    rc_core 11081 1 dvb_usb
    usbcore 126764 7 uhci_hcd,uvcvideo,dvb_usb,ehci_hcd,dvb_usb_cinergyT2,usbhid,cdc_acm
    i2c_core 16944 7 drm,i915,i2c_i801,dvb_usb,drm_kms_helper,i2c_algo_bit,videodev
    $ rmmod dvb_usb_cinergyT2
    rmmod: ERROR: Module dvb_usb_cinergyT2 is in use
    but I don't have any media player running anymore, so why is the module in use and how do I see by what it is in use? Forced removal via rmmod -f worked by the way. Then I was able to remove the other two dvb_usb_ modules, and usbcore and i2c_core disappeared automatically.. but the bug still occurs! Any way to find out which other modules were possibly loaded, or what was done by the system, when I plugged in the tv box?
    Last edited by Jindur (2013-01-06 05:08:51)

    Do you have the 3 year Applecare? If so, you could try calling Applecare and see if they can help you resolve this over the phone. If not, be sure to get this problem documented with a case number before your 1 year warranty is up. If this has just been a constant hassle, you could ask to talk to Customer Relations.
    It sounds like you may have some hardware problems with the keyboard and the trackpad, which could be causing at least some of the problems. Any chance of getting to an Apple store to have it looked at, or would you have to send it in?
    Good luck!

  • My left shift key on Macbook Pro Retina (15") is behaving like the F11 key (show/hide open windows).  The key behaves the same for the laptop keyboard and for an external Apple keyboard?  This just started in last week after 6 months of use

    My left shift key on Macbook Pro Retina (15") is behaving like the F11 key (show/hide open windows). 
    The left shift key behaves the same on the laptop keyboard and on an external Apple keyboard. 
    This just started in last week after 6 months of use.  The right shift key and other keys on the keyboard all appear to work correctly.
    Suggestions greatly appreciated.

    I have a solution to this issue now after a discussion with Apple Support.  Some where in the last few weeks, there was a change in the key that would do a Show Desktop under the Mission Control settings in the System Preferences.  Even though the key sequence that was shown for the Show Desktop setting did not include the Left SHift key, by changing this first to having no key sequence and applying that and then changing it back to the F11 key, the Left SHift key issue that I was having has cleared up.
    A second issue that was uncovered was that the SSD had some issues (uncovered when I ran Disk Utility using the Repair Disk key).  I had to restart and use the Disk Utility through the Command R sequence to get to the stand alone Disk Utility.  The SSD appears to be running better as a result as well.
    Hope that this is of use to someone else in the future.

  • I created a 2nd library for my husbands music and now I can't find my original library. I did hold down the shift key to open itunes but is still comes up with the new library. What am I doing wrong? I tried several times with no luck. Thank you.

    I just got an Ipod Classic recently and downloaded Itunes. Got my music on my Ipod. My husband just got an Ipod Touch. I followed the directions on how to create a 2nd library and was able to load his music onto his Ipod. My problem is now I can not find my original library. I did what the directions said about holding down the shift key while opening Itunes and it still goes to the 2nd library that I created. How do i get my original library to come up? I tried several times with the same results. Please let me know what I need to do to be able to get into either library. Thank You.

    Does the original library file still exist on the computer?  Hopefully when creating the new library it was done in a seperate folder as I do not believe iTunes allows for two library files in the same location.

  • Save for the web - Colors and Shift key

    Hi Everyone,
    With CS3 and Save for the Web, while saving a transparent image using GIF, you could use the Eyedropper Tool (i) and hold Shift key to select multiple colors at a time ON the image itself.
    Trying this in CS4 and it doesn't look like it's working. Anything changed? No I have to select the colors one at a time and this is painfull when you're on 256 different colors.
    Thanks!

    It would appear this functionality is no longer available. Shift clicking on the swatches is, though that doesnt help much here.

  • I have been having an problem recently where my shift key will sometimes type capital Y for o apparent reason, and also my return key will enter a backslash. how can I correct this? it happened to me once before. I had to reinstall clean

    Recently my shift key has been for some unknown reason ben typing capital "y" when I use it, and YYI  don't know how to stop it. Also my return key has been adding a backslash after the return, and I am unsure how to remove that as well, I had this problem aout 6 months ago, and I had to wipe the drive and do a clean install before it fixed. I would not want to do that again, if at all possible.

    Have You found a fix for this(question mark)

  • I'am using iphone 5 i tried to update the ios 8.0.2 using the shift key in itunes update @ windows 8 i have the file which i downloaded, but it says that firmware version is not compatible. what can i do for it . help me friends

    i'am using iphone 5, i tried to update the ios 8.0.2 using the shift key in itunes update @ windows 8 i have the file which i downloaded, but it says that firmware version is not compatible. what can i do for it . help me friends

    Hello vinoth1986,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning update issues:
    If you can't update or restore your iPhone, iPad, or iPod touch
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • Shift key not working for some letters

    Hello!
    i just got a new MacBook and just figured out that certain that the left shift key doesn't work for the top row of letters. That is q,w,e,r,t,y,u,i,o. The right bracket doesn't work with either shift key.
    After reading about the possible influence of Sound, I looked there and didn't see any conflicts.
    Is my only solution Apple? Or is there something else I can try?
    Thanks.

    yeah, the same thing is happening with me, but this time only with Shift + s.

  • For some reason the function keys on my mac book changed, I restored them and now the shift keys have the function of showing the desktop and all windows.  I there a way I can restore the original function?

    For some reason the function keys on my mac book changed, I restored them and now the shift keys have the function of showing the desktop and all windows.
    I there a way I can restore the original function?

    You do not tell us what OS version you have. In OS 10.8.2, do this:
    Apple Menu / System Preferences / Language and Text / Input Sources.
    Select the language you want. Mine is set to Canadian English.

  • Shift key and move tool cs3 bug?

    I've just installed CS3 and noticed that dragging a shape/object while pressing the shift key doesn't work like it should. It should constrain the movement to 45 or 90 degrees. But in CS3, when I drag an object this way it does funny things. When I press the shift key while dragging the object up e.g. it doesn't go straight up, but there's an offset of some pixels. Sometimes it jumps even further from one position to the next (about 200 pixels up/down e.g.). I've also tried deselecting all the guide/align options, but the same result.
    Is this some kind of bug in CS3 (in flash 8 it works like expected)?
    I now have to use the arrow keys if I want to move a shape up/down/left/right/diagonal. It does this both on the pc and mac version (so it's not that my version is mixed up of something).

    Order,
    If the Type remains unchanged when selected, you seem to need to both Show Edges and Show Bounding Box under View. You should be able to move it though. Otherwise, something else is wrong.

  • Key Board Mapping for the Shift Key

    I hope this is the correct place to post.
    I just tried to use Ukelele to change my ` key into a 'shift' key but could not do it. Please note that I was not trying to change the 'shift' key itself, but was trying to turn the ` key into an extra 'shift'.
    The reason I want to do this is because on this european macbook they make room for the ` key by robbing you of half of the standard shift key you get on a US keyboard.
    Stretching out with my little finger across this useless key has given me repetitive strain and I am one hurting unit at the moment.
    I would be eternally grateful for any advice.

    Sorry, I did not Express correctly my requirements.
    I did not Ask For the Key Board Equvalent.
    In Forms 9i pressing F9 did not bring the attached LOV, i have to select the same from Menu. In order to avert the user to select From Menu. I want to Define F9 Funtion Globally to relfect in all forms through Key Borad Mapping.
    Is it Possible?

  • My left shift key isn't working, and i can't take it in for repair is there any other way

    my left shift key isn't working, and i can't take it in for repair is there any other way

    Sarwahhhh wrote:
    my left shift key isn't working, and i can't take it in for repair is there any other way
    Why not?  If you are under warranty and/or have AppleCare, call them.  Let Apple deal w/hardware problems.  If you mess up, your warranty will be voided!
    OOW:  For DIY instructions check out the following:
    iFixit
    YouTube's “How To” tutorials.

  • Holding shift key down for multiple selection of objects ?

    Possibly me - but latest release of muse on my mac running OSx 10.8.5 now holding down the shift key and clicking doesn't seem to allow me to multiple select objects- works fine in illustrator and Indd , cant see a preferences check anywhere that i have missed - am I the only one with this issue ?

    catfordboyjohn, please join the discussion of this topic on this thread <Re: After upgrade to Muse CC 2014 i have problem with multiple selection. SHIFT dont work?>. Thanks.

  • Shift key on the macbook pro 15 inch retina is unresponsive

    I bought the macbook pro 15 inch retina just over a week ago and i'm definitely regretting it because the shift key is really unresponsive; what does this mean? I also want to know how to extend the track time on garage band. Anyone know how to? It's really bugging me because I need to type effencianly for a £2000 pound laptop it should be perfect to be honest.
    I have the 2.5 ghz, 16 gb of ram and 512 gb flash storage.
    The battery only runs out just browsing the web and it heats up very fast by only watching youtube...

    MEMORY
    Built-in Memory    8 or 16 GB PC3-12800 (1600 MHz) DDR3L on-board memory
    Maximum Memory    16 GB
    Memory Slots    None
    Interleaving Support    Yes
    DISPLAY
    Built-in Display    15.4-inch (diagonal) LED-backlit display with IPS technology at 220 pixels per inch
    Resolutions    2880 by 1800 pixels (Retina); scaled resolutions: 1920 by 1200, 1680 by 1050, 1280 by 800, and 1024 by 640 pixels
    GRAPHICS
    Graphics Card    NVIDIA GeForce GT 650M and Intel HD Graphics 4000
    Graphics Memory    1 GB GDDR5 (GeForce GT) 512 MB DDR3 (HD Graphics) shared with main memory
    Display Connection    1 - HDMI port or Thunderbolt digital video output (Supports an HDMI-compatible device while using one Thunderbolt display or support for two Thunderbolt displays)
    Display Modes    Dual display extended, video mirroring, and AirPlay Mirroring
    External Resolution    Up to 2560 by 1600 pixels on up to two external displays
    Camera    720p FaceTime HD camera
    Use this to access all the resolutions
    http://www.madrau.com/indexSRX4.html

Maybe you are looking for

  • Different max photo sizes in emails, beams, photo stream?

    I've noticed differences in file sizes when emailing photos from the iPhoto app, when inserting in an email, and when emailing directly from the photo.  I've found that iOS 6 is able to send the largest file when inserting it into an email. If I sele

  • Where are stats that are gathered using dbms_stats stored?

    where are stats that are gathered using dbms_stats stored?

  • Codepage error in WHERE statement

    Hi, My program on Win2003 server with oracle client works fine, but on another machine with instant client does not. The next statement gets back data on 1st server, but nothing on the 2nd machine: SELECT myField FROM myTable WHERE someField = 'TÁSZ'

  • Seagate Barracuda 7200 160gb Won't Mount

    I have a Seagate Barracuda 7200 160gb from a PowerMac G5. It spins up just fine. Sounds normal but is not mounting. I have used a Manhattan USB Dock, A Universal USB Drive Adapter. I had it mounted once externally and ran Disk Repair on it, and it st

  • Can't get dvd to import into imovie?  Any suggestions?

    I have my sister's wedding that a friend took for me on his camcorder, and burned to a dvd for me. But when I put the dvd in I am unable to save or anything and when I go to imovie and try to import it the best I get is files unrecognizable, but I'm