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
5
votes
1 answer

How to map ESCAPE key to CAPS LOCK in mac os x?

Many posts ask how to map the CAPS LOCK key to ESC. I know how to do that, but when I do, I lose the CAPS LOCK functionality all together because ESC still is mapped to escape. I want to SWAP the escape key to the capslock key (hitting caps lock key…
WalksB
  • 498
  • 2
  • 14
5
votes
1 answer

Delphi 2010 virtual keyboard, start with CapsLock on?

Delphi 2010 Enterprise How can I automatically turn the CapsLock on when the virtual keyboard is displayed.
Donald Adams
  • 147
  • 1
  • 10
5
votes
1 answer

How can I detect if CAPS LOCK STATUS is active without press any key using JS?

I want to detect if caps lock is active using on focus event in input element but without any press key like the behavior that is having the input password type for IE. For IE when you are focus in this kind of input password appears a warning…
UserEsp
  • 415
  • 1
  • 7
  • 29
5
votes
3 answers

Does anyone know where OSX stores the settings in System Preferences > Keyboard > Modifier Keys?

I'm apparently not the only one who wants to know (How can I change modifier keys in "System Preferences > Keyboard > Modifier Keys..."). I've tried watching the System Preferences app with dtruss, but that doesn't seem to be possible on 10.10.3…
Ted Middleton
  • 6,859
  • 10
  • 51
  • 71
5
votes
1 answer

How to remap CAPSLOCK on OSX?

CapsLock appears to be one of the two trickiest keys to remap (the other being the power button). I can global-intercept NSEvent-s: _eventTap = CGEventTapCreate( kCGHIDEventTap, kCGHeadInsertEventTap, …
P i
  • 29,020
  • 36
  • 159
  • 267
5
votes
1 answer

Can't block capslock with CGEventTap

I'm using Quartz CGEventTap in an attempt to globally intercept capslock presses and block them (to have them do something useful instead). I succesfully detect capslock presses but have so far been unable to block them. My code (originating from…
Thor Frølich
  • 664
  • 5
  • 18
5
votes
1 answer

Override Caps Lock with Ctrl using C#

I'm writing (yet another, I know) keyboard remapper using C# and Visual Studio 2008. I followed this guide to learn how to snap up low-level key presses. This works just fine for overriding e.g. normal alphabetical characters on my keyboard, but I…
Deniz Dogan
  • 25,711
  • 35
  • 110
  • 162
4
votes
2 answers

keyDown event is not fired for Capslock in Mac

CHROME (52): When turning caps lock ON - only keydown is fired (no event in keyUp or keyPress) When turning caps lock OFF - only keyup is fired (no event in keyDown or keyPress) FIREFOX (46): Only keyDown event is fired for both caps lock ON & OFF…
4
votes
2 answers

Detect Caps Lock in Python curses

For such a basic question, I'm surprised I couldn't find anything by searching... Anyways, I made a curses app in Python that assists in solving puzzles of a certain DSiWare game. With it, you can take a puzzle and inspect the components of it…
Exp HP
  • 695
  • 6
  • 24
4
votes
2 answers

Anybody know how to toggle caps lock on/off in Python?

I'm trying to toggle caps lock on/off when the two shift buttons are held down for a second. I've tried using the virtkey module, but it's not working. That module does work for other keys though, so I don't think I'm using the module…
Justin
  • 305
  • 2
  • 12
4
votes
4 answers

How to call a keyboard key press programmatically?

Problem: Calling a keyboard key to be pressed, from a piece of C# code but here's the catch: the key-press should not be limited to the process/application but received by the entire operating system, so also when the program is in the background…
MooshBeef
  • 279
  • 1
  • 5
  • 15
3
votes
1 answer

using GetKeyState(VK_CAPITAL) & 1 in linux

#include int main() { if ( !GetKeyState(VK_CAPITAL) & 1 ) { printf("caps off"); } else printf("caps on"); return 0; } but limited to windows only how to do this in linux with gcc ? what is & 1 in GetKeyState(VK_CAPITAL) & 1 ?
Sunny Sam
  • 31
  • 1
  • 4
3
votes
2 answers

How to simulate Caps Lock keystroke with CGEventCreateKeyboardEvent in OS X

Has anyone had any luck simulating Caps Lock keystroke with CGEventCreateKeyboardEvent on OS X? Basically I have tried alphabetic character and alphanumeric character okay but Caps Lock. Hopefully, I would like to simulate Caps Lock keystroke to…
Eric Chen
  • 31
  • 2
3
votes
1 answer

How to detect Caps Lock is ON on web browser on Android Devices using JavaScript?

We can very well detect CapsLock is ON/not on iPhone web browser using KeyboardEvent.getModifierState(), with sample code, function checkCapsLock(e) { if (e.getModifierState("CapsLock")) { alert("Caps ON"); } } But it doesn't work on a…
Aniruddha Shevle
  • 4,602
  • 4
  • 22
  • 36
3
votes
1 answer

Caps Lock problem in Ubuntu VMWare virtual Machine

I'm running a vmware virtual machine (not vmware pro) on which I have given 2 GB RAM from my laptop . The problem is whenever I press caps lock when writing text inside the virtual machine and I get capital letters when I press it again and I write…
1 2
3
10 11