keyboard

"Greedy" <Delete> and <Backspace> in Visual Studio

Hello! Is there the way to apply "greedy" behavior to and keys in Visual Studio? By "greedy" I mean such behavior when all whitespace between cursor position and next word bound can be deleted using one keystroke. ...

What's a good alternative to the included Terminal program on OS X?

My keyboard acts flaky when I use a terminal session on OS X (another question?), so using the command line is often frustrating. Other native applications seem fine and don't suffer the same problem. Is there another terminal application that might work better for me? ...

Keyboards with the number pad in the middle?

I'm suffering from early RSI symptoms and am looking for a way to avoid injury. My physiotherapist has determined that the worst thing I seem to be doing is using my mouse at such a weird angle. The problem for me is, I keep my keyboard positioned such that my left and right forearms are angled in the same amount, i.e., my body is cent...

Is it worth swapping Ctrl and Caps Lock for windows users that don't use Emacs

I've been aware of Steve Yegge's advice to swap Ctrl and Caps Lock for a while now, although I don't use Emacs. I've just tried swapping them over as an experiment and I'm finding it difficult to adjust. There are several shortcuts that are second nature to me now and I hadn't realised quite how ingrained they are in how I use the keyboa...

telneting backspace key is wrong

When I telnet into our works sun station my backspace key doesn't work. I use a temporary workaround of: $ stty erase ^H This works but each time I telnet in I have to retype this. How can I set this to work properly in my .cshrc file? ...

Is there .Net replacement for GetAsyncKeyState?

In VB6, I used a call to the Windows API, GetAsyncKeyState, to determine if the user has hit the ESC key to allow them to exit out of a long running loop. Declare Function GetAsyncKeyState Lib "user32" (ByVal nVirtKey As Long) As Integer Is there an equivalent in pure .NET that does require a direct call to the API? ...

How do I detect a keyboard modifier in a bookmarklet?

Is there a way to detect if the user is holding down the shift key (or other modifier keys) when executing a javascript bookmarklet? In my tests of Safari 3.1 and Firefox 3, window.event is always undefined. ...

Is there use for the Scroll Lock button anymore?

The scroll lock button seems to be a reminder of the good old green terminal days. Does anyone still use it? Should the 101 button keyboard become the 100 button keyboard? ...

How can I give keyboard focus to a DIV and attach keyboard event handlers to it?

I am building an application where I want to be able to click a rectangle represented by a DIV, and then use the keyboard to move that DIV Rather than using an event listener for keyboard events at the document level, can I listen for keyboard events at the DIV level, perhaps by giving it keyboard focus? Here's a simplified sample to i...

Sidewinder x6 keyboard macro for Visual Studio?

Hi, the new keyboard from Microsoft, Sidewinder x6 can record in game macro. I was woundering if it could be used in Visual Studio (record key in application too)? (This could be very useful to press 1 key instead of Ctrl+M,M to Toggle Outline.) ...

Horrible VMware keyboard shortcuts

Hello, I'm a VMware user and far too often I use keyboard shortcuts while programming. However, this has proved to be quite distressing as sometimes the VMware gets hold of it and turns off / pauses (ctrl+Z) the virtual machine. Is there a way to disable keyboard shortcuts on VMware? Has anyone here ever found a workaround? ...

How do I have YAHOO.util.KeyListener disabled when an input element is focused?

I have a MenuBar setup with YUI's MenuBar widget, and I have a YAHOO.util.KeyListener attached to 'document' to get quick keyboard access to the menus and submenu items (e.g. 's' to open the Setup menu). The problem is that the keylistener will still fire when a user is in an input element. For example, a user might be typing 'soup' in...

Sending a keyboard event from java to any application (on-screen-keyboard)

I am working on developing an on-screen keyboard with java. This keyboard has a JComponent for every possible key. When a mouse down is detected on the button, I want to send a specific keyboard code to the application currently on focus. The keyboard itself is within a JFrame with no decorations and set to always-on-top. I found tha...

Am I subscribing to YUI Menu events improperly?

I've read and followed YUI's tutorial for subscribing to Menu events. I also looked through the API and bits of the code for Menu, MenuBar, and Custom Events, but the following refuses to work // oMenuBar is a MenuBar instance with submenus var buyMenu = oMenuBar.getSubmenus()[1]; // this works buyMenu.subscribe('show', onShow, {foo: ...

How to check for key being held down on startup in Java

I'm trying to write a resolution selection dialog that pops up when a program first starts up. To prevent boring the user, I want to implement the fairly standard feature that you can turn off that dialog with a checkbox, but get it back by holding down the alt key at startup. Unfortunately, there is no obvious way to ask java whether a...

Home/End keys in zsh don't work with putty

I'm running zsh as the default shell on a Ubuntu box, and everything works fine using gnome-terminal (which as far as I know emulates xterm). When I login from a windows box via ssh and putty (which also emulates xterm) suddendly the home/end keys no longer work. I've been able to solve that adding these lines to my zshrc file... bind...

How do I get my hands on a Dvorak keyboard?

I've always assumed that before I can use the Dvorak layout I need to purchase a Dvorak keyboard. But I can't find one on Amazon. Is it simply a matter of popping the keys off a Qwerty keyboard and moving them around? ...

Control multiple PCs with single Mouse and Keyboard

As a programmer I found it very hard to use my laptop and workstation with two different input devices, Can anyone suggest a good solution to use single mouse and keyboard to control my two machines I am not looking for a Virtual Machine or RDP solution to see my machines in a single monitor, ...

How can I increase the key repeat rate beyond the OS's limit?

I have a bad habit of using the cursor keys of my keyboard to navigate source code. It's something I've done for 15 years and . This of course means that my navigating speed is limited by the speed of the keyboard. On both Vista and OS X (I dual boot a MacBook), I hate my key repeat rate turned all the way up. But in Visual Studio, and ...

How to push a key and release it using C# ?

I am writing a C# program which captures signals from a external device, and sends keystrokes to another application. I am using SendKeys and it works fine. SendKeys does "press" a key by holding and releasing it immediately. I would like to make it push key and release it at will. My question is : "is there a way to send a "push" sign...