Event.Keycode只能在I11中读取然后我该怎么改变它。 [英] Event.Keycode Is Only Readable In Ie11 Then How Can I Change It.
本文介绍了Event.Keycode只能在I11中读取然后我该怎么改变它。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
event.keycode只能在IE11中读取,然后我该如何更改呢。
还有其他什么我可以使用而不是键码。
实际上我们在特定的键盘evet之后分配了keycode = 505,但现在在iell中这不起作用所以请让我任何其他替代解决方案
event.keycode is only readable in IE11 then how can i change it.
Is there any other thing I can use instead of keycode.
Actually we are assign the keycode = 505 after specific keyboard evet but now in iell this is not working so please let me any other alternate solution for this
推荐答案
你不能。键盘事件属性只能通过设计读取...
您可以做的是:
1.只需在键事件处理程序中执行任何操作而无需更改键-code(无论如何你在特定的键击中更改它)
2.如果你想将事件对象传递给你的缺陷中的其他处理程序,你可以使用新属性附加新值,例如 - event.newKey = 505 - 并在另一种方法中使用新属性...
You can not. Keyboard event properties are read only by design...
What you can do is:
1. Just do whatever you want in the key-event handler without changing the key-code (in anyway you change it on a specific key-stroke)
2. If you want to pass the event object to some other handler in your flaw you may attach the new value using a new property, like - event.newKey = 505 - and use the new property in the other method...
这篇关于Event.Keycode只能在I11中读取然后我该怎么改变它。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文