Show caps lock warning when typing in a password field

NEW
Unassigned

Status

Instantbird
Account manager
--
minor
5 years ago
11 months ago

People

(Reporter: Mic, Unassigned)

Tracking

Details

(Reporter)

Description

5 years ago
*** Original post on bio 377 at 2010-03-11 22:03:00 UTC ***

Show a warning when typing in a password field and caps lock is enabled. This can't be done properly using Javascript and key events only, since the caps lock key is not reported separately.

Checking for "uppercase-letter while shift key is not pressed" isn't working properly either since it requires pressing another key and it would be nice to warn before that even happens.
(Reporter)

Comment 1

5 years ago
*** Original post on bio 377 at 2010-08-23 11:53:40 UTC ***

https://bugzilla.mozilla.org/show_bug.cgi?id=259059

This is a bug on the Mozilla Bugtracker, sitting there for years already, with a half-finished patch as it seems. Maybe it could serve as basis for an own patch here (or our fix could go there and finally solve this issue).
See Also: → bug 259059
(Reporter)

Comment 2

5 years ago
*** Original post on bio 377 at 2010-08-31 13:16:59 UTC ***

Could be possible to do this without a native component, using js-ctypes instead. Here are a few pointers:

user32.dll:GetKeyState
  http://msdn.microsoft.com/en-us/library/ms927178.aspx

user32.dll:GetKeyboardState
  http://msdn.microsoft.com/en-us/library/ms646299%28VS.85%29.aspx

Virtual-Key Codes
  http://msdn.microsoft.com/en-us/library/ms927178.aspx
You need to log in before you can comment on or make changes to this bug.