Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to warn user of CAPS LOCK enabled in Flex/AIR?

Similar to the XP login screen, in Flex 3, how can I display a warning to the user in a textbox that the CAPS LOCK key is enabled?

like image 432
SkunkSpinner Avatar asked Dec 18 '08 14:12

SkunkSpinner


People also ask

How can I tell if my caps lock is on?

How to tell whether Caps Lock is on. If you pressed the Caps Lock key, you can turn it off by pressing the key again. Many keyboards have a built-in status indicator that lights up when the Caps Lock key is on. This LED is located either directly on the key or on the status bar of the keyboard, if there is one.

How do I get Caps Lock indicator on my screen Logitech?

If you go to the Logitech website and then go to their support and downloads page, you can select your keyboard and download the proper Logitech Setpoint Software for you operating system. Once it is installed, whenever you hit the caps lock key, a big watermark will appear on your monitor screen.

How do I turn off caps lock indicator?

Hit the Windows key & type: Control Panel and then open it. Then steer to the Key Settings tab & double-click on Caps Lock. Now uncheck 'Displays Caps Lock Status on Screen' & reboot your PC.


1 Answers

flash.ui.Keyboard.capsLock is not bindable so that code won't really work.

I would invoke a function in the "keyDown" event for the TextInput and then check flash.ui.Keyboard.capsLock in that function. You can then set visible/includeInLayout on that Text, pop up an Alert, etc...

like image 195
cliff.meyers Avatar answered Oct 26 '22 10:10

cliff.meyers