Silverlight - sending Control+s

Apr 28, 2010 at 7:17 AM

Hi,

I'm having trouble using White with Silverlight 4 to sent a Control+s combination. If I use an upper case 'S' then I get a Control-Shift+S. But the lower case 's' is never received.

The test code fragment:

_document.Keyboard.HoldKey(KeyboardInput.SpecialKeys.CONTROL);
_document.Keyboard.Enter("s");
_document.Keyboard.LeaveKey(KeyboardInput.SpecialKeys.CONTROL);

The production code fragment:


        protected override void OnKeyDown(KeyEventArgs e)
        {
            base.OnKeyDown(e);
            if (!e.Handled)
            {
                Debug.WriteLine("xKey pressed {0}-{1}", e.Key, e.PlatformKeyCode);//>>>
            }
            else
            {
                Debug.WriteLine("Key gobbled {0}-{1}", e.Key, e.PlatformKeyCode);//>>>
            }
        }

If I send 'S' the trace tells me it got a Control-Shift+S.  If I send 's' (as shown above) I see the Control key but not the S key.

Any ideas?

Thx

Rob Smyth

 

Coordinator
May 18, 2010 at 6:07 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.