简体   繁体   中英

Simulate Ctrl key at keyDown event of textBox in Silverlight

I m using richTextbox in my application & inside chrome, richtextbox isnt capturing SPACE key

I found it is a bug, but i dont want to use third party hotfixes for it.

richTextbox can recognize Ctrl + Space & Shift + Space key So I've decided to simulate Ctrl key at keydown event of richTextbox

But I don't know how to simulate it without SendKeys ? I've gone through UI automation but m not finding the keyboard simulation.

Any help ?

It was javascript hotkey overriding Space key in silverlight. I m using javascript for hotkeys in my application & space is bound to some function. whenever im pressing space (when silverlight textbox has focus ), javascript is executing that function, so i removed key from javascript.

Now it is working fine in chrome.

Because of this link i thought its a bug

http://code.google.com/p/chromium/issues/detail?id=125924

I apologize for blaming silverlight & visual studio & expression blend, it was javascript.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM