locked
KeyUp not firing on Up Arrow(15) Down Arrow(17) RRS feed

  • Question

  • For some reason the KeyUp() event is not firing on the arrow keys. The KeyDown is working fine. Here is my code  am I missing something or is this a bug. IT worked at one point then it stopped working. What is going on here?

    function onLoad(control, context, rootElement)

    {

     rootElement.AddEventListener("KeyDown", onKeyDown);

    rootElement.AddEventListener("KeyUp", onKeyUp);

     }

    function onKeyDown(sender, keyEventArgs)

    {

    if(keyEventArgs.Key ==17)

    {

    sndr = sender.findName(
    "ArrowDown")

     

    ScrollDown(sndr, arguments)

     

     

    }

    else if( keyEventArgs.Key ==15)

    {

    sndr = sender.findName(
    "ArrowUp")

    ScrollUp(sndr, arguments)

     

    }

     

    }

    function onKeyUp(sender, keyEventArgs)

    {

    alert(
    'nothing');

    StopScroll(sender, arguments)

     

    }

     Thank you

     

    Monday, February 4, 2008 2:51 PM

Answers

  • This is a known bug with IE and Silverlight. 

    Monday, February 4, 2008 3:44 PM