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
14
votes
3 answers

Tkinter binding mouse double click

I'm trying to bind my mouse double click to a function which for now just prints the current selection in a Tkinter list box. To be clear the function should only print when the user double clicks on one of the items of a Tkinter list box. What…
meh123
  • 327
  • 1
  • 4
  • 7
14
votes
1 answer

Tmux Scroll Up/Down Page using Ctrl-b and Ctrl-f

Once in scroll-mode, how do I use Ctrl+b and Ctrl+f to scroll up and down pages? These commands currently move back and forth between characters. .tmux.conf set -g default-terminal "screen-256color" setw -g xterm-keys on set -g status-bg black set…
Dru
  • 9,632
  • 13
  • 49
  • 68
13
votes
3 answers

How to bind one key to multiple commands in VSCode

I'm trying to make the key Ctrl+UpArrow execute both commands cursorUp and scrollLineUp. I was hoping that this would work, but it doesn't: { "key": "ctrl+up", "command": ["cursorUp", "scrollLineUp"], // This doesn't work "when":…
Ameen
  • 1,747
  • 3
  • 16
  • 31
13
votes
2 answers

Java Swing KeyBindings stop working only on Mac

I'm working on a game using Swing and I'm using KeyBindings for input from the keyboard. I'm having issues where the KeyBindings stop responding. It happens every time I run the application, but as far as I can tell, it's not when a certain chain of…
kneedhelp
  • 555
  • 4
  • 18
13
votes
5 answers

Gtk3 keys bindings in css files

Where can I find an exhaustive list of available keybindings that a user can define in a CSS file for GTK+ 3? I have already checked those…
cedlemo
  • 3,205
  • 3
  • 32
  • 50
13
votes
2 answers

How to setup vim/emacs keybindings in RStudio?

RStudio constantly requires taking fingers away from "asdf-jkl;" to the arrow keys. Not very comfortable after working with IPython's Emacs keybindings. RStudio has vim navigation for file editing, but not for the console. (And that's not the real…
Anton Tarasenko
  • 8,099
  • 11
  • 66
  • 91
13
votes
3 answers

Gnome Shell Extension Key Binding

What is the simplest way to (globally) bind a key combination (e.g. +A) to a function in a gnome shell extension? Inspecting a couple of extensions, I ran into the following code: global.display.add_keybinding('random-name', …
12
votes
5 answers

WPF datagrid and the tab key

Another datagrid keybindings question I have a datagrid. It has selection mode set to FullRow and KeyboardNavigation.TabNavigation="Once" which I was hoping would get my desired result but it doesn't. When the tab key is pressed when the datagrid…
Steinthor.palsson
  • 6,286
  • 13
  • 44
  • 51
12
votes
1 answer

How do I make CTRL-SHIFT-S bind to Save All in Atom?

I tried to follow the directions in the Keybindings settings, but it didn't work. I copied the default entry, opened the keymap file, pasted, changed to 'all', and saved. 'body': 'ctrl-shift-S': 'core:save-all' I changed two files then presses…
Chloe
  • 25,162
  • 40
  • 190
  • 357
12
votes
2 answers

Find out corresponding escape sequence for a given key combo

In Emacs, I want to bind a particular key combination to a command. However, because I am using Emacs in terminal mode within iTerm2 on OS X, I need to translate the key combo to character escape sequence and register that sequence with iTerm2 so…
MLister
  • 10,022
  • 18
  • 64
  • 92
12
votes
5 answers

How can I keep Eclipse from filling in auto-completions when I type an opening parenthesis ('(')?

So, on Eclipse Luna, I often encounter the situation where I'm typing a method name, but the first autocomplete suggestion is not the method I am looking for but something that is prefix-equivalent but longer, as in this example: In the example, I…
Jannik Jochem
  • 1,516
  • 1
  • 14
  • 28
12
votes
1 answer

Sublime Text 2 - Key binding for specific language?

Question What's the proper way to create a key binding for a specific language? Background I'd like to insert a semi-colon after each line automatically when working on java files. I've created a macro to accomplish and have been able to bind it to…
Ralph Callaway
  • 1,768
  • 1
  • 15
  • 34
12
votes
2 answers

Make Vim use Dvorak keybindings ONLY in insert mode?

I would like to use the Dvorak layout when I am typing in Vim. However, I would like all of my shortcuts to stay the same (behave as if keyboard is Qwerty in command mode). I have tried using this: set…
Gordon Gustafson
  • 40,133
  • 25
  • 115
  • 157
11
votes
2 answers

java swing key bindings - missing action for released key

Having registered key bindings for "SPACE" and "released SPACE" which works as advertised when space is the only key pressed/released, I notice that pressing space, then pressing ctrl (or any other modifier key), then releasing space and finally…
Aksel
  • 533
  • 4
  • 12
11
votes
1 answer

Emacs key bindings in DrRacket?

How are we supposed to configure DrRacket so that it does not use Emacs key bindings? Like I type C-s and it just saves the code instead of bringing up the search line. Or I use C-x C-f and it won't open another file. The DrRacket documentation…
randomusername
  • 7,927
  • 23
  • 50