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
1
vote
3 answers

How can I intercept and block the caps lock toggle event globally, leaving other events intact?

I need to check the toggled state of caps lock and block it. I have tried using a low-level keyboard hook SetWindowsHookEx with WH_KEYBOARD_LL and checking for WPARAM==WM_KEYDOWN || WPARAM==WM_SYSKEYDOWN messages, and LPARAM.vkCode==VK_CAPITAL ||…
NS studios
  • 149
  • 14
1
vote
1 answer

How to check the CapsLock status in Assembly

I tried BIOS Interrupt INT 16h, 02h but it is not supported on Emu8086. Can someone teach me how to get directly Capslock status on memory location 0:0417h or other Assembler which supported BIOS Interrupt 16h 02h I've tried MASM but it's not going…
PandoraLH
  • 13
  • 3
1
vote
1 answer

Caps Lock does not seem to work as modifier key (Insert) with NVDA running inside a virtual machine (macOS VMware Fusion)

I'm running NVDA inside a virtual machine on my macOS using VMware Fusion. I do that since many years, and it's generally a very smooth experience, except that I need to map a keyboard key to Insert. I use Karabiner-Elements to do just that: it maps…
Joshua Muheim
  • 12,617
  • 9
  • 76
  • 152
1
vote
0 answers

Use setxkbmap to make CapsLock act like a 3rd Shift key?

I've gotten used to having the Ctrl key being located below the Shift key instead of above. I occasionally hit the CapsLock by mistake and would like to map to act like another Shift key. Searching the web, I see plenty of postings on how to map it…
1
vote
1 answer

Understanding Keyboard LED status

I'm using an Arduino Leonardo as a keyboard (BadUSB) and I would like to get the Keyboard LEDs status (e.g. CAPS_LOCK). Using https://github.com/NicoHood/HID/blob/master/examples/Keyboard/KeyboardLed/KeyboardLed.ino I have managed to get it working…
julesmcrt
  • 11
  • 2
1
vote
0 answers

Mapping a "Num Lock" key on a French laptop keyboard

I have a laptop on Windows 10 with a french "AZERTY" keyboard. It is a 14" laptop, so there isn't a number pad on the right of the keyboard, the numbers are only on the North of the letters. The number keys are also used to write common accentuated…
1
vote
1 answer

Disable password TextBox Caps-Lock is On warning

I am creating a login thing and I have this problem that every time I click on this "Show Password" Button and the Caps-Lock is activated, a Warning pops up and won't leave (at least I think it won't, which for the end-user would be even worse) I…
1
vote
0 answers

How to consume CAPS-LOCK event on MacOS

I am trying to remap CAPS-LOCK. I can successfully detect CAPS-LOCK key-down/up events using CGEventTap. However, I am unable to consume them. (OTOH I am able to consume ordinary key-down/up events). The below code excerpt illustrates…
P i
  • 29,020
  • 36
  • 159
  • 267
1
vote
1 answer

Detect CapsLock in Java

I want to determine the current state of CapsLock using Java. I have tried the following so far. Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK) always returns true I cannot use key listeners as they will inform about…
safaarooj
  • 11
  • 5
1
vote
2 answers

Best way to intercept pressing of Caps Lock

What is the best way to intercept the Caps Lock button on Windows, for making a program like Launchy? Currently, I'm setting a low-level hook with SetWindowsHookEx, but that's a bit too low-level for me, since I don't want to intercept other…
user541686
  • 205,094
  • 128
  • 528
  • 886
1
vote
1 answer

Hiding Caps lock icon Xamarin iOS

Probably an easy fix, but how can I hide the "up arrow" icon (looks like ⬆️) on password fields when when the users turns on caps lock. Just to be clear, I want them to be able to turn on the caps lock, but not see the icon on text field. The…
tikkat
  • 45
  • 1
  • 6
1
vote
0 answers

How to capture Caps Lock when in Remote Desktop so the connecting host doesn't process it?

I'm using SetWindowsHookEx to make my Caps Lock key bring up an application launcher that I'm writing, blocking the actual toggling of Caps Lock. It works just fine on a local machine. However, when I try to use it on a machine that I have connected…
user541686
  • 205,094
  • 128
  • 528
  • 886
1
vote
1 answer

How to match CAPS LOCK in vimrc file of VIM

As we map different keys in .vimrc file of vim. I want to map Caps lock. As back space we write
or for Enter what is the representation of Caps lock in .vimrc.
The Nitian
  • 11
  • 1
  • 2
1
vote
1 answer

How can i check Caps Lock state in C# (asp.net), client side

How can i check 'Caps Lock' state in C# (asp.net), client side? I can't know what user types because they type id/pw on PKI activeX. So I have to know when they click the PKI call button. (.net framework version 2.0) When I develop this code ...…
yan
  • 31
  • 6
1
vote
2 answers

How to make MFC Ribbon Statusbar act like the regular CStatusBar

The first image shows what I want to do. The second one shows what I get. I want the status bar to show the state of the special keys CAPS LOCK, NUM LOCK and SCROLL LOCK. This image is from an old project using the CStatusBar. This snapshot is from…
manianis
  • 109
  • 3
  • 13