开发者

Backspace not working for IE Toolbar

开发者 https://www.devze.com 2023-03-04 13:13 出处:网络
I am developing the Internet Explorer Toolbar in c#.net using the band objects. Now in my toolbar, I am using the textbox field to make the search enable, but in this textbox field, I am not able to

I am developing the Internet Explorer Toolbar in c#.net using the band objects.

Now in my toolbar, I am using the textbox field to make the search enable, but in this textbox field, I am not able to use the backspace, delete, arrow keys and many other such button.

I am not sure about y I am not able to use this. Ple开发者_开发百科ase help me about this. I found many question posted over like this, but none of them was having the specific answer.

Thanks


The problem is that the browser is eating the events for those keystrokes, so the solution is to force focus to the toolbar when the text box receives focus.

To fix it add this line to your toolbar's constructor:

yourTextBox.GotFocus += (sender, args) => OnGotFocus(args);

Also make sure you have implemented TranslateAcceleratorIO() per this example.


Compare your code to this one and see what's missing.

0

精彩评论

暂无评论...
验证码 换一张
取 消