capslock

What is Caps Lock good for?

Do you find CAPS LOCK useful, and for what? Do you use any funky scripts or programs that change default behaviour of the key? ...

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

The question title says it all really. 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, then check if shift was also held down. If it wasn't, therefore caps lock must be on. This feels really dir...

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 ? ...

Change keyboard locks in Python

Is there any way, in Python, to "programmatically" (:-) change the CAPS LOCK/NUM LOCK/SCROLL LOCK states. This isn't really a joke question - more like a real question for a joke program. I intend to use it for making the lights do funny things ;-) ...

Is it possible to programmatically disable the Caps Lock key on Windows?

The Caps Lock key is driving me nuts - I never use it intentionally, but sometimes accidentially press it instead of TAB. My current solution is to remove the button with a screwdriver (no damage, can be placed back if ever needed). Is there a way to disable the Caps Lock key programmatically on Windows - write a program with a keyboard...

How do I swap CTRL and CAPS LOCK on Carbon Emacs on OSX without doing it OS-wide?

I've recently started learning emacs since I was unhappy with Textmate and as a starting point read the "Effective Emacs" article by Steve Yegge. I was very keen on his CTRL -> CAPS LOCK swap, but I don't want to do it OS-wide, I want this swap to only occur in emacs every time I run it. I was wondering if there's a way to do this in th...

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 seem to need a bit more to make Caps Lock act like Ctrl. My understanding (which may be i...

How to hijack the Caps Lock key for Cut, Copy, Paste keyboard operations

Here is what I am trying to accomplish: To Copy, press and release Caps Lock ONCE To Paste, press and release Caps Lock TWICE, quickly To Cut, press Ctrl+Caps Lock The reason I want to do this is often times i find my self looking down to press the correct X/C/V key, since they're all next to each other (atleast on a QWERTY keyboard)...

Caps Lock script cleanup

I was wondering if someone could help me clean up this code if possible; including merging the two functions into one. I'm new to javascript so I could really use some help. I was able to get this script working quite well, I just want to know if it can be refined and/or if there are any problems with it that I overlooked. The script ...

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

I saw the vim wiki tips and it says that in order to remap Esc to CAP 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 it possible to remap Esc to CAP LOCK by only adding or modifying lines in the _vimrc? ...

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 the app and don't change the caps lock status. So what is the best way to achieve this w...

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 changes. ...

Way to turn on keyboard's caps-lock light without actually turning on caps-lock?

I'm writing a program that uses caps-lock as a toggle switch. It would be nice to set the LED of the key to show that my program is on or off, like the capslock key does naturally. I know that I could just SendInput('Capslock'); or whatever to actually turn caps-lock on and off. But my app is a typing program, and I don't want to have t...

Get and set Num/Caps/Scroll-lock status in Mono C#

Is thyere a way in Mono.Net to get and set the Num/Caps/Scroll-lock status platform independent (Linux and Windows)? Thanks in advance. ...

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

Hi, 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 incorrectly. Does anybody have a way for doing this? Just to be clear, I want to actually toggle ...

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 this stackoverflow answer) is something like this: eventTap = CGEventTapCreate(kCGHIDEventT...

Qt - Password field

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 using for passford field QLineEdit (is it good?) with setEchoMode(QLineEdit::Password). ...

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 individually. The keys qweasdzx are used to paint tiles (the keys are arranged in some sort ...

Can I map Control to the Caps Lock key and keep the toggle functionality in Linux?

Can I change the Caps Lock key to Control and still keep the on/off nature of Caps Lock? I've checked into using xmodmap and seem to have hit a dead end. Many people want to swap them, but they also want to swap the way they work. I'd rather keep my new Control key as an on/off switch for Control. ...