ExtJS textfield capture Caps Lock key event

Many times when you create a login form which has password field, you need to make sure the user enter valid password. The changes of entering wrong password by the user may also lead to blocking of account. To minimize the error we can tell user to enter correct password and display error/warning message if Caps Lock key is on.

ExtJS textfield component comes with a keypress listener which we can use to check which key user has entered. To capture any pressed key for textfield we need to listen keypress event as follows.


Download Source

About the Author

has written 69 posts.

I Love Coding, Analyzing, Designing and doing it the right way. I am obsessed about learn anything new daily and sharing what I have learn each Day. This Blog is journey of my Zeal, going through step by step to the mountain of desire to become prefect. Google Wanna Hire me ?

Copyright © 2020 http://www.techzoo.org. All rights reserved.
Proudly powered by WordPress. Developed by 7Tech Solutions