Alert the user when CAPS LOCK SHIFT is turned ON then Loigin

Hello

I develop a Login Page, I need to warn the user if the CAPS LOCK is enabled.

I tried this but it does not work, can help me please to get there.

To the login Login.mxml creationComplete I call a function CallMe()

function CallMe (): void
{

If (Keyboard.capsLock) {}

Alert.Show ("shift caps lock is on");
}
on the other
{
Alert.Show ("shift caps lock is OFF");
}
}

On the above code always (even if the CAPS LOCK is ON or OFF) the alert
Alert.Show ("shift caps lock is OFF"); is always executed.

Could you please help me on this.

Thanks in advance.

Hi Kiran,

Check the simple code below:

Note: Most here is the update should be there in the TextInput... so the cursor in textinput your username for your login... page and adds the listener KeyDown as shown below in your main mxml...


http://www.Adobe.com/2006/mxml"layout ="absolute"creationComplete =" init () ">"

  Import mx.controls.Alert;

private function init (): void {}
Called from creation complete event of the app.
Listener to handle any event keyboard KEY_DOWN:
this.addEventListener (KeyboardEvent.KEY_DOWN, handleKeyDown);
}
        
private void handleKeyDown(event:KeyboardEvent):void
{
If (Keyboard.capsLock) {}
Alert.Show ("shift caps lock is on");
}
on the other
{
Alert.Show ("shift caps lock is off");
}
            
}

]]>


If this post answers your question or assistance, please mark it as such.

Thank you

Jean Claude Chari

Tags: Flex

Similar Questions

  • Satellite C660 - keyboard does not work but the Num and caps lock shift are on

    I have a Satellite C660 which was working fine this morning. When I came home from work and he turned, the keyboard does not work and therefore can not enter my login information.
    The Num and caps lock shift are turned on.

    Any ideas on how to solve this problem?

    Hello

    You are able to disable the CapsLock and NumLock?
    You can access the BIOS by pressing F2 by turning on the device?

    If this does not work, I would recommend checking an external USB keyboard.
    If the USB keyboard would be functions, then this means that the internal keyboard is defective and must be replaced.

  • Where is the setting to change to show when you lock shift or stopped

    Original title: caps lock display

    where is the setting to change to show when you lock shift or stopped

    Hello wgkg,

    It should be in the keyboard properties.

    1. open the control panel

    2. click on the keyboard icon

    3. in the keyboard properties, click on settings in the key

    4. scroll to the option of caps lock and highlight it.

    5. click on the button Configure (below the list of available keys options menu)

    6. in the caps lock set up a window, place a nect check mark (tick) for the "show state lock shift on the screen..." and then press the Finish button.

    You will see only the option above, if you have installed the relevant keyboard/mouse drivers. If you don't see these options, that is, the options key parameters, check with the manufacturer of your keyboard, see that you have the correct drivers and 'no' the standard Microsoft drivers generic like the one provided with windows.

    If her you've seen before a prompt on the screen for you say that the cover lock is enabled or disabled, but you don't see it now you probably disabled the option at some point in the past.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • Questions Microsoft sculpt an ergonomic keyboard - cannot press Caps Lock shift-space-E at the same time. The E key does not work.

    Hello

    Just like the title says, when I try to press a combination of: caps lock shift + space + E, E key is not broadcast.

    Pressing any other key (Q, W, R, T, Y, U) works very well.

    I noticed this only happens with the space bar on the left side, the right one to work properly.

    Any idea what goes wrong? and why the two spacebars feature is not the same thing?

    Thank you.

    Hello

    Thank you for your response.

    Because Israel is not listed in the list of countries for the hardware support, please contact the establishment from which you obtained your Microsoft product.

    Hope this information helps. Please do not hesitate to contact us if you have problems with Windows in the future.

  • Is it possible to disable the caps lock shift key on a laptop?

    Is it possible to disable the caps lock shift key on a laptop?  I am running Windows 7 64 bit on a Lenovo laptop
    Thank you

    I understand that you have found some suggestions on editing the registry - they aren't so bad. If you don't want to download all of the files that allow you to disable the LOCKING of the capital LETTERS, you can create it by yourself:

    1. Press the Windows key + R > type notepad , and then press enter
    2. Paste to Notepad:

      Windows Registry Editor Version 5.00

      [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
      "Scancode Map" = hex: 00, 00, 00, 00, 00, 00, 00, 00, 02, 00, 00, 00, 00, 00, 3A, 00, 00, 00, 00, 00

    3. File > record under...
      • Select to Save as: all files
      • Enter the file name : disable_caps_lock.reg
      • Click Save
    4. Right-click on the created file > merge
    5. Restart your system

    In case you want to turn CAPS LOCK on again, you must remove this registry entry, so you must do the following:

    1. Press the Windows key + R > type regedit and press enter
    2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
    3. Right click on the Card of Scancode > delete
    4. Restart your system

    I guess that it is perhaps the only way to turn off the CAPS LOCK.

    In case you still don't want to do this, Windows 7 offers something different to disable the LOCKING of the upper CASE. You can turn the ToggleKeys, then you will hear a beep when you press CAPS LOCK. To do this follow these steps:

    1. Press Start > Control Panel > access >easy access Center > make the keyboard easier to use
    2. Check the box to enable the ToggleKeys
  • HP pavilion dv6-1245dx won't boot screen logo, grid screen, caps lock, shift and numluck work

    * little background, my laptop works well before it happened, I stopped and then tried to power it using after a minute I Gilles down, it starts and then when I try to use internet, the display suddenly blacked out, thought it was the power so I tried to power it again I get is bright with no logo so I turn it on and turn it on again then it became lines graph form tried to check if keyboard works numlock and capslock not working when I press it, ang wireless volume does not work

    HP pavilion dv6-1245dx won't boot screen logo, grid screen, caps lock, shift, and numluck work.

    I tried to remove the battery and press hold power button almost 60 sec to reset the bios always the same, I tried the reinstallation of the memory 2 still the same please help

    problem solved... saw something on the forum about pressing f10 or f11 I randomly pressed start magically work

  • Satellite A100 PSAA8: I can type uppercase when caps lock is disabled

    Hello

    (First: I am not good in English because I'm from Holland.)

    I own a Satellite A100 PSAA8, it used to work very well :)
    But in recent weeks, I have a weird keyboard problem.
    I can type only uppercase when caps lock is off and I can't type all numbers at all, and a full stop is a: > and a comma is:
    I thought it was a software problem, so I formatted the hard drive, then I tried the Toshiba recovery disc.

    But it did not work I get some errors with symbol of missing files (or something like that) then in the window appears: 0:000 and all that I type it does not work. Then I got the Windows XP Pro. CD, but when I get to the chapter when I fill out my serial number, I still can't type any number and only uppercase letters with the caps to the large lock.

    Then I (tried) to install Windows 2000 and still I can't type any number, etc. (but the drive is empty: S) then I insert a live CD of Ubuntu and Ubuntu keys work perfect (?). I just isn't getting it. Help, please!

    Hello Ikke

    Believe me it is not easy to say with certainty what can be the problem?
    Please check if the keyboard is recognized correctly in the Device Manager. Also, be sure that the language settings are right. So many reasons for possible software for not functional keyboard.

    It is also possible that there is hardware problem. Maybe is the faulty keyboard cable or controller on the keyboard. It is also possible that the keyboard itself is defective.

    In my opinion you should contact the service authorized in your country. They can test with brand new keyboard and see if the keyboard is defective.

  • pop up box to alert the user to update browser

    Hey people

    How to make a pop box to alert the user to update browser when they come to my site?

    Thank you

    Simply use the provided JS snippet to the: http://browser-update.org/#install automatically this pop for visitors

  • I have need of an arrow or a kind of icon that points and moves to alert the user of the website to scroll down.  Are there widgets or is there a method to move an image in its own.  In addition, how to get my muse Web page to scroll automatically?

    I have need of an arrow or a kind of icon that points and moves to alert the user of the website to scroll down.  Are there widgets or is there a method to move an image in its own.  In addition, how to get my muse Web page to scroll automatically?

    A Google search for "animated gifs arrows" returned hundreds of animated arrows.

  • stopped to get an alert in the lower right, every time my caps lock shift is on

    original title: caps lock alert

    Having recently replaced my hard drive after the old one fried, my Dell Studio 1555 (Vista) has stopped giving me an alert in the lower right, whenever my shift caps lock is on. Also, I can't see the taskbar at the top of the screen or the other (the one with IE and the trash that appears whenever I used to spend my mouse up there). Does anyone know how to fix this?

    I tried some google searches and asking autour, but all I can find is to know how to stop messing around in the registry and it's asking for trouble.

    As far as caps lock icon in the notification area, it is not a feature of Vista and probably came with other software provided with your computer.  I would check for keyboard software (whether in the discs you got with the computer or on the web site of the manufacturer) as is likely, it is where he is.  Because it's a Dell, it may be a problem with the quick set button.  See the following thread that describes how a similar problem was found on another machine from Dell:http://www.vistax64.com/general-discussion/256075-caps-lock-popup-dell-inspiron-1545-a.html.  According to me, a new and updated Quickset updated download can be obtained at the following:http://support.dell.com/support/downloads/driverslist.aspx?c=us&cs=19&l=en&s=dhs&ServiceTag=&SystemID=STUDIO1555&os=WLH&osl=en&catid=&impid=.  Just install it and I think that your problem will be solved.

    As far as the upper toolbar will, I believe you are referring to the Dell docking station.  You can get that here:http://www.delldock.com/.  Simply download and install on it and you'll have the toolbar (if you have set up to be the settings you had before or what you want now).

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • When I press caps lock, shift, a gray box just above the center of my task bar appears

    If I press 'Caps lock' or 'NumLock' a grey box appears, there is a lock with either a '1' for NumLock and caps lock "A" when you press on, is there a way I can stop to happen that she rather boring!

    It's in the low center of my screen (NO lower-right)

    This is controlled by a utility put on by the PC manufacturer, and not by a component of Windows 7.

    You will need to use the manual of your PC, or on their Web site to find out how turn off & see what else is disabled at the same time.

    Just as an example, on the valleys, the utility is called QuickSet & it controls many elements of keyboard such as WiFi power button so [ MSConfig] remove a lot of side effects.

  • Why is there a delay when I press Caps Lock shift before I can type

    Problem in typing and replacing letters without ceiling... the computer takes too long.

    When I type, and then press the f lock key my computer takes a few seconds before it works.  I tappe has about 90 OMP and it's very frustrating when I want to make a word CAPE all and I have to really stop and wait before I can continue typing.  I have an icon in the lower right corner with a picture of a lock, and when I press the button to unlock the icon change in the image of a padlock with the universal, no symbol (a circle crossed out).  All of the suggestions.  JSSmsn

    See these:

    http://forums.MacRumors.com/archive/index.php/t-897584.html

    http://www.computing.NET/answers/Windows-95/caps-lock-takes-a-while-huh/163377.html

  • Keyboard of Machine virtual VMware in caps lock shift when physical keyboard has caps lock

    Recently, I upgraded my VMware Fusion to the latest version.  Now when I use Vista my keyboard is caps lock while my physical keyboard is not.  Is this a bug, or a misconfiguration, or something?

    The State of capslock can sometimes get out of sync. We tried to solve this in the past, but it has sometimes resulted in the kernel panics, then we challenge it. If you use the Fusion 2.0, you can re-synchronize State with the Virtual Machine > touch send > caps lock.

  • How to keep caps lock shift on screen without hitting the key? Thank you, Nick

    How to keep the caps lock indicator on screen without hitting the key each time to check its position? Thank you, Nick

    This indicator is provided by the keyboard device driver.  The driver included with the keyboards that Microsoft sells won't stay on the screen.  You can search your favorite search engine for "software keyboard indicator", there are some online that keeps the current keys shown in the taskbar near the clock.

  • My caps lock, shift, NumLock, and icons of volume that is displayed on the screen are gone, and I want them back.

    I don't know what happened to do. How to make a comeback?

    Hello

    Thanks for posting!

    1. have there been recent changes to the system before the show?

    2 what CAPS Lock icon are you referring?

    3. using any tactile function?

    Method 1:

    Follow the link and perform a system restore. Check if it helps.

    System restore

    http://Windows.Microsoft.com/en-in/Windows7/products/features/system-restore

    Answer with the results, I would be happy to help you further.

Maybe you are looking for