Questions tagged [capslock]

Caps lock is a lock key found on many computer keyboards, depending on the local keyboard layout they implement.

Typical Caps lock behaviour is that pressing the key sets an input mode in which all typed letters are uppercase by default (i.e. in All caps). The keyboard remains in caps lock mode until the key is pressed again.

Keyboards often include a small LED to indicate that Caps lock is active, either on the key itself or in a row with Scroll lock and Num lock indicators. While on the original IBM PC keyboard this LED was controlled by the keyboard itself, it is under software control of the computer since the introduction of the IBM AT. Some new laptop and wireless desktop keyboards lack the LED, instead providing software that gives an on-screen indicator.

The Caps lock key is a modified version of the Shift lock key that occupies the same position on the keyboards of mechanical typewriters.

158 questions
512
votes
15 answers

Using Caps Lock as Esc in Mac OS X

How do I make Caps Lock work like Esc in Mac OS X?
indentation
  • 9,895
  • 6
  • 21
  • 14
268
votes
31 answers

How do you tell if caps lock is on using JavaScript?

How do you tell if caps lock is on using JavaScript? One caveat though: I did google it and the best solution I could find was to attach an onkeypress event to every input, then check each time if the letter pressed was uppercase, and if it was,…
nickf
  • 537,072
  • 198
  • 649
  • 721
77
votes
16 answers

How to map CAPS LOCK key in VIM?

I'm using GVIM under Windows. And want to map CAPSLOCK to Ctrl+^ Any way to do this? Btw, I see tons of samples over the web how to swap CAPS and Esc using registry hack, but none of them use VIM map command, instead external tools and registry…
Evgenyt
  • 10,201
  • 12
  • 40
  • 44
44
votes
4 answers

How can I find the state of NumLock, CapsLock and ScrollLock in .NET?

How can I find the state of NumLock, CapsLock and ScrollLock keys in .NET?
RV.
  • 2,782
  • 8
  • 39
  • 51
42
votes
6 answers

POST vs post, GET vs get

I realize that both will work, but is one more correct than the other?
vs. Why use one or the other?
Explosion Pills
  • 188,624
  • 52
  • 326
  • 405
27
votes
7 answers

Why is so complicated to remap Esc to CAPS LOCK in Vim?

I saw the vim wiki tips and it says that in order to remap Esc to CAPS LOCK you have to edit the following windows code: REGEDIT4 [HKEY_CURRENT_USER\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,01,00,3a,00,00,00,00,00 Is…
alexchenco
  • 53,565
  • 76
  • 241
  • 413
25
votes
6 answers

Detect caps lock on/off using jQuery

How can I detect the Caps Lock key on/off using jQuery? I have a password textbox, and I allow only lowercase letters so I don't want the Caps Lock key to be on. Is it possible to detect the state of Caps Lock key using jQuery?
ACP
  • 34,682
  • 100
  • 231
  • 371
20
votes
3 answers

Is there a way how to detect IE10's "Caps Lock is on" feature?

As you probably know, there is a relatively simple way how to, more or less reliably, detect whether Caps Lock is on, especially when user starts typing into password fields. However, it is a quite unknown fact that IE10 supports this feature…
duri
  • 14,991
  • 3
  • 44
  • 49
15
votes
3 answers

Get caps lock state in Android

How can I get the caps lock state in Android using a hardware keyboard? In pure Java it can be detected with boolean isOn = Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK); But this does not work with Android...
Kewitschka
  • 1,445
  • 1
  • 21
  • 35
14
votes
8 answers

Qt - Password field, warn about Caps-Lock

Is there any Qt-built-in method to warn user (with pop-up window) that CapsLock is switched on while password field is active? I am currently using QLineEdit (is it good?) with setEchoMode(QLineEdit::Password).
Narek
  • 38,779
  • 79
  • 233
  • 389
13
votes
2 answers

How to change caps lock status without key press

I am using a python program that is activate when pressing Caps Lock key and I want to be able to turn on/off the caps lock status when the program is active. I tried to send keys with virtkey but it obviously don't work since the keys just activate…
Anderson Santos
  • 169
  • 1
  • 1
  • 6
13
votes
2 answers

Python 3.x - Getting the state of caps-lock/num-lock/scroll-lock on Windows

Just as the question asks, I know this is possible on Linux, but I couldn't find anything recent for Windows. Is it even possible?
EnronEvolved
  • 159
  • 1
  • 8
12
votes
3 answers

WinAPI: How to get the caps lock state?

How can get whether Caps Lock is on or off? I tried to search it but all I'm finding is how to toggle or turn it on/off which is exactly opposite of what I'm looking for. I'm trying to do that in both C++ and Delphi. Please help
SmRndGuy
  • 1,719
  • 5
  • 30
  • 49
11
votes
4 answers

How do I light up the Caps Lock light with xset?

I wrote a little fetchmail script that checks the remote server and plays an audio file when I have new mail. I also wanted to also light up one of my keyboard lights when the mail was available but I ran into a problem. I am able to light up the…
user903115
  • 133
  • 1
  • 6
11
votes
8 answers

Python - How to get current keylock status?

I'm attempting to write a simple programme that displays the current status of the different keylocks, but I'm unable to find a solution as to how to get the current status of them in Python. Thank you.
user1784064
1
2 3
10 11