Questions tagged [key-bindings]

Anything related to key-bindings (a.k.a. "keyboard shortcuts", "hotkeys", etc.), i.e. the associations between key combinations and the corresponding actions triggered when the user presses such combinations.

Anything related to key-bindings (a.k.a. keyboard shortcuts, hotkeys, etc.), i.e. the associations between key combinations and the corresponding actions triggered when the user presses such combinations. For example, pressing alt + F4 closes an application on Windows, while ctrl + C copies the selected text into the clipboard for both Linux and Windows GUI applications.

See Wikipedia on keyboard shortcuts.

1731 questions
5
votes
1 answer

Up/down key bindings not recognized

I have a textbox and a listbox. The listbox shows search suggestions for the textbox. I want to highlight the first listbox item when user presses down arrow when the textbox is focused. Similarly, the textbox should be focused back when the user is…
Sayak Banerjee
  • 1,954
  • 3
  • 25
  • 58
5
votes
3 answers

Multiple-line cursor movements in XCode 4

The same question has been asked for Xcode 3 But the solution there is said to not work with Xcode4. And no new solution is available there. How to get a key-binding to move the curser up/down about 10 lines in Xcode 4 ?
phlebotinum
  • 1,362
  • 1
  • 14
  • 17
5
votes
4 answers

Emacs how to bind command to all keys, with a few keys exempt?

I want to make a minor-mode (foo-mode) which has its keymap (foo-mode-map), but when the user presses any key not in (foo-mode-map), the minor-mode should quit. How do I bind the turn-off-foo-mode all other keys? EDIT: here is the solution I came…
event_jr
  • 17,467
  • 4
  • 47
  • 62
5
votes
3 answers

Passing a Command Parameter from a Datagrid through a Keybinding

I've a wpf specific problem. I'm trying to delete a Row from a Datagrid, by defining a Keybinding that passes the selected Row of the Datagrid as a Commandparameter to a Command. This is my Keybinding:
OnTheFly
  • 2,059
  • 5
  • 26
  • 61
5
votes
2 answers

Using Key Bindings with Arrow Keys

I'm creating a game that uses the arrow keys to move a sprite. I've added key bindings for the arrow keys and the letter n, but arrow keys aren't working. Here's my code: public class MyPanel extends JPanel { Sprite sprite = new Sprite(); …
Eva
  • 4,397
  • 5
  • 43
  • 65
5
votes
1 answer

PowerShell bind arrow keys to command history search

In bash, I can bind the Up and Down arrow keys to history search with "\e[5~": history-search-backward "\e[6~": history-search-forward in ~/.inputrc. If at the prompt I type ca and then the Up key, it will bring the next command line in history…
5
votes
3 answers

Why doesn't setting MenuItem.InputGestureText cause the MenuItem to activate when I perform the input gesture?

I want to implement Keyboard shortcuts for a MenuItem. I have used the code below:
Sathish
  • 59
  • 1
  • 2
5
votes
0 answers

Sublime Shortcut: Key-Binding to put each HTML attribute on a new line inside <> tag

I've scoured the internet and can't seem to find a solution. I'm looking for a keybinding/shortcut that will change this....
to this...
denden
  • 1,309
  • 1
  • 14
  • 23
5
votes
1 answer

How to send (emulate) keybinding to webContents in electron?

I'm building electron application that makes a desktop interface for a website. On the website, I already have registered keybindings, like Shift+? that shows the table of all available keybindings. I have to create an app menu of actions that…
denysdovhan
  • 908
  • 8
  • 21
5
votes
1 answer

Emacs: unbind all keys of some-mode-map

I know, that I can unbind keys using unbind-key. In this case I have to know the key I want to unbind. But I don't know the key. I just want to unbind all keys of some-mode-map. I don't want override them, I just want to unbind them and then to…
nicolai
  • 1,140
  • 9
  • 17
5
votes
1 answer

Javascript Checking Keyboard State

I am working on making a simple Javascript game and need to be able to check if certain keys are being pressed. I have tried binding to the onkeydown event, but the problem that I am having is twofold: first, it won't let me check to see if more…
Ty Overby
  • 85
  • 2
  • 5
5
votes
1 answer

Certain keybindings don't work when using emacs in a terminal

I load GNU emacs in it's own window by typing emacs in the terminal. I like to use the keybindings from pc-selection-mode, which allows you to highlight characters using shift-right or shift-left, or entire lines by pressing shift-up or…
Eddy
  • 6,661
  • 21
  • 58
  • 71
5
votes
2 answers

WPF Input KeyBinding for a ListBox Item

I'm having a WPF Application, programatically I'm setting the focus to the ListBox Item, after that using UP / Down arrow I'm navigating from one Item to another Item. I need to Implement ENTER KeyEvent for that appropriate Item, it should trigger…
B.Balamanigandan
  • 4,713
  • 11
  • 68
  • 130
5
votes
2 answers

How do you reference the meta and arrow key combinations in emacs init.el?

I am trying to override Meta + left / right arrow keys in my emacs config and cannot figure out how to refer to the key sequence. If I interact with Emacs directly I can type "M-x, global-set-key, M-, next-buffer", and it works fine. But I can't…
ray
  • 61
  • 6
5
votes
2 answers

How can I get draft.js to recognize the escape key?

I would like to cancel input and clear the field in my app when the user types the escape key. We tried testing for e.which === 27 in the keyBindingFn, but that function is never even invoked when the escape key is pressed (it is invoked just fine…
Carl Manaster
  • 39,912
  • 17
  • 102
  • 155