确定大写锁定状态 [英] Determining caps lock state

查看:125
本文介绍了确定大写锁定状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!


我想知道是否有办法确定帽子的状态

锁定键,开启或关闭。

当然我可以捕捉关键事件并查看大写锁定是否按下
,但这没有帮助。


我有看到一些例子,看看在

输入字段中输入的字符,以确定大写锁定是否打开,但我想知道是否

有可能是一点点更直接报告上限

锁定状态。


罗伯特。

解决方案

< blockquote> Robert写道:

嗨!

我想知道是否有办法确定帽子的状态
锁定键,on或者关闭。
当然我可以捕捉关键事件,看看是否按下大写锁定,但这没有用。

我看到一些看到的例子在
输入字段中输入的字符进行确定如果大写锁定打开了,但是我想知道是否有可能会更直接地报告上限锁定状态。




为什么?


-

干杯

Richard。


rf写道:

罗伯特写道:

嗨!

我想知道是否是任何确定帽子状态的方法
锁定键,打开或关闭。



为什么?




它是警告在用户可以更改密码的表单上启用大写锁定。我想在大写锁定时启用一个块

启用并在关闭时再次隐藏它。

我更喜欢这样做,就像我们在摇摆客户。


Robert写道:

rf写道:

Robert写道:

嗨!

我想知道是否可以通过任何方式来确定锁定状态的锁定键,打开或关闭。
为什么?



警告已启用大写锁定




我的键盘上有一点指示我的大写锁定状态。

在用户可以更改密码的表单上。


密码字段应该是,嗯,类型="密码"字段。

我想在大写锁定启用时使块可见,并在关闭时再次隐藏它。


您正在尝试更改浏览器的行为。别。你怎么知道
知道我甚至*有一个大写锁定按钮?

我更喜欢像在swing客户端那样做。




什么是摇摆客户?


-

干杯

理查德。


Hi!

I was wondering if the was any way to determine the state of the caps
lock key, on or off.
Of course I can capture the key events and see whether the caps lock is
pressed, but that does not help.

I have seen some example that looks at the characters entered in an
input field to determine if the caps lock is on, but I was wondering if
something is possible that is a bit more immediate to report the caps
lock state.

Robert.

解决方案

Robert wrote:

Hi!

I was wondering if the was any way to determine the state of the caps
lock key, on or off.
Of course I can capture the key events and see whether the caps lock is
pressed, but that does not help.

I have seen some example that looks at the characters entered in an
input field to determine if the caps lock is on, but I was wondering if
something is possible that is a bit more immediate to report the caps
lock state.



Why?

--
Cheers
Richard.


rf wrote:

Robert wrote:

Hi!

I was wondering if the was any way to determine the state of the caps
lock key, on or off.



Why?



It is to alert that the caps lock is enabled on a form where a user can
change his password. I want to make a block visible when the caps lock
is enabled and hide it again when it is off.
I prefer to do it as similar as we do in a swing client.


Robert wrote:

rf wrote:

Robert wrote:

Hi!

I was wondering if the was any way to determine the state of the caps
lock key, on or off.
Why?



It is to alert that the caps lock is enabled



I have a little light on my keyboard that indicates my caps lock status.
on a form where a user can
change his password.
Password fields should be, well, type="password" fields.
I want to make a block visible when the caps lock
is enabled and hide it again when it is off.
You are trying to change the behaviour of my browser. Don''t. How do you
know I even *have* a caps lock button?
I prefer to do it as similar as we do in a swing client.



What is a "swing client"?

--
Cheers
Richard.


这篇关于确定大写锁定状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆