我可以找到CAPSLOCK按钮按下的ANCII键值吗 [英] Can i find ANCII key value for CAPSLOCK Button press
本文介绍了我可以找到CAPSLOCK按钮按下的ANCII键值吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当Capslock开启和关闭时,我必须触发一些事件,
我尝试使用ANCII键值来实现,
1.什么是ANCII值,当CAPS锁定为ON和OFF时,
谢谢!
Shiva
Hi,
I have to trigger some event when Capslock is ON and OFF,
I trying to do it with ANCII key value,
1. What is the ANCII values, when CAPS lock is ON and OFF,
Thanks!
Shiva
推荐答案
大写锁定是一种键盘状态,而不是字符值,因此没有ASCII值(这就是我在猜测的意思) ANSI.)
由于您将其标记为ASP.Net
,因此我也想知道您想知道如何从浏览器读取大写锁定状态.当有人在文本框中键入内容时,您可以使用Javascript做出最佳猜测".我发现此示例 [
Caps lock is a keyboard state, not a character value, so there is no ASCII value for it (which is what I''m guessing you mean by ANSI.)
Since you flagged this asASP.Net
, I am also guessing you want to know how to read the caps lock state from a browser. You can use Javascript to make a "best guess" when someone types into a text box; I found this example[^] here at CP. But otherwise, no.
这篇关于我可以找到CAPSLOCK按钮按下的ANCII键值吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文