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
7
votes
2 answers

How to hook/remap an arbitrary keyboard event on OSX?

I would like to map: CAPS-LOCK to Fn Fn to Left-MOUSE LSHIFT+3 to # RSHIFT+3 to something else etc. I have searched exhaustively for any tool that offers complete freedom for remapping keyboard input, but cannot find one. (Windows has…
P i
  • 29,020
  • 36
  • 159
  • 267
7
votes
1 answer

How to create a case-sensitive keybinding in Emacs?

According to the Emacs' manual, modifier keys are case-insensitive due to "historical reasons". Can I change this behaviour? My goal is making M-a and M-A to mean different things. Thanks!
EuAndreh
  • 578
  • 3
  • 16
7
votes
3 answers

How to define a shortcut for special keys in Java Swing, e.g. german umlaut key Ä?

How do I define a keyboard shortcut for top level special keys like german umlaut key Ä? I found a way to map unicode letters that are used for default american layout keys, see here. But the key event for the german umlaut key Ä…
jan
  • 2,741
  • 4
  • 35
  • 56
7
votes
2 answers

Ace Editor - Change CTRL+H keybinding

I'm working on an implementation of Ace Editor and Ctrl+F works great for the built-in "Find" dialog, however I'm trying to find a way to change out the Ctrl+H for Ctrl+R and prevent default behavior. I've looked over docs and forums about working…
Fluidbyte
  • 5,162
  • 9
  • 47
  • 76
7
votes
1 answer

Sublime Text 2 sidebar context: Vim-like key bindings for sidebar navigation

Does anyone know the "context" for the Sublime Text 2 side bar, or have any idea how to find the context? I use Sublime Text 2 in Vintage mode, and along with several custom key bindings (and VintageEx) rarely have to leave the home row. …
jacob-ogre
  • 173
  • 6
7
votes
1 answer

Emacs escape key

Currently, if I press C-h c, then trice press ESC key on keyboard I get result ESC ESC ESC (translated from ) runs the command keyboard-escape-quit What the difference between ESC and and how can I use this…
KAction
  • 1,977
  • 15
  • 31
7
votes
2 answers

XCode Using TAB to tab multiple lines of code

Is it possible to select multiple lines of code in XCode and when I press TAB button all those selected lines indent? I know CMD+[ will indenet and CMD+] will undent. But I want that same principle to happen to 'TAB andSHIFT+TAB`. Right now, it…
user-44651
  • 3,924
  • 6
  • 41
  • 87
7
votes
1 answer

JPanel doesn't react to KeyBindings

I am working on an application that requires a JPanel to react to the escape key being pressed. I am pretty sure i used the right method for registering keybindings to a component but clearly i am still doing something wrong. This is the code…
Exevan
  • 335
  • 1
  • 3
  • 24
7
votes
2 answers

Full screen Window won't get keyboard input using KeyListener or KeyBoardFocusManager

I'm having problems with getting my KeyBoardFocusManger to work with my full screen Window. No matter what, it just wont get keyboard input. I used a System.exit(0) and a println() to look for any call to the keypressed/released/typed method, but no…
David Kroukamp
  • 36,155
  • 13
  • 81
  • 138
7
votes
5 answers

How to write a tilde (~) character in Emacs on Mac OS X?

I'm used to write a ~ character by pressing Alt+N on Mac OS X. This does not work in Emacs. Alt+N key seems to be bind to the command history. So my question is how to write a ~ character in Emacs on Mac OS X? EDIT: I'm using Aquamacs.
Jan Deinhard
  • 19,645
  • 24
  • 81
  • 137
7
votes
5 answers

How do I bind C-= in emacs?

This s-expression in my .emacs file does not produce the desired result: (define-key global-map (kbd "C-=") 'djhaskin987-untab-to-tab-stop) Why can't I bind a command to Ctrl+=? EDIT for clarification: I am using emacs23-nox on the standard build…
djhaskin987
  • 9,741
  • 4
  • 50
  • 86
6
votes
1 answer

Window.InputBindings with a bound collection

I can't find anything that looks like this online. I am looking for a way to create a collection of Keybindings in the code (with a Keybinding ViewModel), and then bind the collection to the view, instead of listing out every binding manually in…
Kyeotic
  • 19,697
  • 10
  • 71
  • 128
6
votes
3 answers

Javascript multiple keys depressed

so right now I'm using a function that will set a value to true if one key being pressed, another being pressed regardless of whether or not the first one is still depressed. function doc_keyUp1(e) { if (e.keyCode == 37){ lPunch =…
Riveascore
  • 1,724
  • 4
  • 26
  • 46
6
votes
2 answers

In which file was the keybinding defined?

Considering a keystroke in Emacs, e.g. C-x C-s. I can figure out which function it invokes by typing C-h c keystroke, but how can I find where this keybinding was defined? (Maybe the right answer is that it cannot be decided, because the keymaps…
viam0Zah
  • 25,949
  • 8
  • 77
  • 100
6
votes
3 answers

unwanted: APL keyboard overlay enabled?

I've been trying out APL. I'm running Windows 10 and I've installed Dyalog 18.0, and the APL Language and APL Backtick Symbols extentions for VS Code. But even though I'm not running any of these programs, sometimes suddenly my keyboard is hyjacked!…
JHBonarius
  • 10,824
  • 3
  • 22
  • 41