key-bindings

Keyboard Assignment in Visual Studio

Every now and then my keyboard in Visual Studio gets all screwy. For example Shift + 3 inserts a pound symbol instead of a hash #. Shift + \ inserts a tilde ~ instead of a pipe |. When this happens it only affects the current instance of VS - even if I have multiple VS windows open. Only VS is affected - Notepad and other windows app...

TextMate keybindings for Eclipse

Is there a plugin for Eclipse that adds TextMate-style keybindings in addition to Emacs, etc...? ...

How to add find-previous in xdvi or findPrevious in xpdf for vi keybindings?

Is there a way to add a find-previous function in xdvi or a findPrevious function in xpdf? Those would be equivalent to a function that brings up the search dialog with the "Search backwards" option already checked. I need such functions in order to define keybindings bind ? any findPrevious in my .xpdfrc and xdvi.mainTranslations: ...

How do you bind Enter and Esc keys to OK and Cancel buttons respectively in a WPF dialog?

My WPF app uses a dialog with Ok and Cancel buttons. I would like to bind the Enter key to the Ok button and the Esc key to the Cancel button. Seems like it should be a simple thing to do. ...

How to specify key bindings in a dict file inside Cocoa app bundle?

(This is not a question about KVC/KVO and key-value bindings.) I'm writing an application with a "tools" panel. Every tool can be selected using one-letter key (like "M" - "Move tool"). Tool can be selected even when there is no main window and the tools panel is not selected (not being "key"). Docs say that raw key events are not prop...

Add Watch Expression in Ecipse using keyboard shortcut

I need help adding a keyboard shortcut for adding a watch expression in Eclipse. I can add a watch by right-clicking in the "Expressions View", but having go back and forth between the keyboard and mouse cuts down on efficiency. Can anyone offer me any suggestions to fix this? ...

Emacs How to redefine Shift-R for expected use

I've checked my elisp files to make sure that I do not have any bindings that contain Shift+R (and I have not found any). I expect SHIFT+R to print an uppercase character, but instead I get R R undefined inside of the Emacs command line. This is only in C/C++ major modes. Any suggestions? Update: Describing the key shows that it is und...

override display appearance of accelerator keys in JMenuItems in Java/Swing

I've noticed that on some macs the JMenuItem uses the word "space" to indicate that the space bar is the key binding. On other macs a symbol is used (looks like a short capital U). I'd prefer the "space" presentation since it's more transparent to users. Is there any way to override how the LAF graphically represents the accelerator key?...

Conkeror Keybindings on Mac OSX

Has anyone figured out how to change the keybindings for the meta and control keys for Conkeror on Mac OSX? For example, in Emacs I have my C mapped to the apple command key and my M mapped to the option key. Is there any way to do this for Conkeror? Can anyone supply the javascript for the .conkerorrc file? ...

Responding to "Back" and "Forward" buttons in WPF

I was planning to add support for the Back and Forward buttons, found on many keyboards, to my WPF app, but I'm struggling to get them to work. I've tried using a standard KeyBinding to BrowserBack and BrowserForward, no joy. I tested the code with the ESC key to make sure it was working in principal, and that key was fine. Nextup I ha...

Keybinding move word in JRuby irb on OSX

Similar to this question, except in JRuby (it works in MRI Ruby). Alt-left prints a "b" in my console. Very annoying! To clarify, I've setup my terminal as described in this article, mapping option-left to escape-b. ...

Does PBKeyBinding.dict still work for setting Xcode key bindings.

New to the Mac (OS X 10.6.2), and Xcode (3.2.1), (and new here!), I've been tinkering with the shortcuts, using the procedures described here. I made the folders mentioned, and the file PBKeyBindings.dict: /* ~/Library/KeyBindings/PBKeyBinding.dict */ { "^f" = "moveWordForward:"; /* Ctrl-f = next word */ "^j" ...

How can I change the keybinding used to autocomplete in vim?

I'm not a big fan of Ctrl-n, I'd like to be able to use Ctrl-Space. Any ideas how I can do that? ...

How to turn off alternative Enter with Ctrl+M in Linux

Why is Ctrl+M bound to Enter in Ubuntu Jaunty? How to turn it off? I'm using Emacs and would like to bind Ctrl+M to some other command. ...

How to assign newline functionality in Ubuntu Jaunty to Enter directly?

In Ubuntu Jaunty the Enter key is apparently translated to Ctrl-m symbol. I'd like to free Ctrl-m symbol from newline functionality to make it available for other commands. In this case I guess I should translate Enter to newline directly. How do I do that? I'm talking about key reassignment in gnome-terminal. ...

WPF Key-Binding- Can I create a single key-binding that fires a command every time control is pressed with any number and then passes the number to the command as a parameter?

I need to create hot-keys for every control + number combination and would prefer not to have create ten commands. Is there any way to do this? ...

Detect if a key is bound to something in vim

I'd like to know if there is a way to figure out if a key does something in vim. I know that I can use :map to see user-defined mappings, but is there something for the built-in stuff? For example, I always had CTRL-W bound to close tab, because I thought that it was unused. After half a year, I found out that there are some sequences t...

notepad++ tab to left

if i press tab the line moves to right, what i must press to move line to left? ...

Is there a way to pass a parameter to a command through a keybinding done in code?

I am making a custom control I need to add some default keybindings, microsoft has already done with copy and paste in a textbox. However one of the keybindings needs to pass a parameter to the command which it is bound to. It is simple to do this in xaml, is there any way to do this in code? this.InputBindings.Add(new KeyBinding(Change...

Multiple Keybinding to a single command

My window has just a listview. This facilitates the users to incremental search the db. Since the design does not have a textbox, i've to globally handle the keys. I think it could be achieved by keybinding. But how can i handle all the keys and associate it to a single command. Also suggest me other methods if any. P.S.: I want this i...